Hey, I am trying to do a word counter and am stuck... The object of this assignment is to
1. read the document and count the words
2. output the words
3. let user input document name.
basically, we are given a few text files and we are supposed to open them, read them and count the words. I get that i can count the spaces in between the words and figure out the number of words from that. I guess i will have to add 1 to the number of spaces.
Here is what i have so far.