I have found a couple things posted here and there but none seem to work.
I attempted to modify a string I have to create words lists but got that wrong also.
All I want to do is take all files in a folder, read each txt file and print a word per line into a new file. like below:
word
word
word
word
word
No need for counting or anything else.
I need to do the same thing in a second file but in the second file I need to count how many times each word is in the folder of text . Like below:
word 15
word 247
word 89
word 155
and so fourth. I do not know if this will need to be done in two runs or can it be done in just one with the result being 2 text files. It needs to be done in 2 text files as for the output.
Thanks in advance.
I attempted to modify a string I have to create words lists but got that wrong also.
All I want to do is take all files in a folder, read each txt file and print a word per line into a new file. like below:
word
word
word
word
word
No need for counting or anything else.
I need to do the same thing in a second file but in the second file I need to count how many times each word is in the folder of text . Like below:
word 15
word 247
word 89
word 155
and so fourth. I do not know if this will need to be done in two runs or can it be done in just one with the result being 2 text files. It needs to be done in 2 text files as for the output.
Thanks in advance.