what is the best way to count the number of words in a text file...excluding white space, end of lines, and end of file?
The problem I'm having is that when I do my word count I always come up with more words than there are in the file.
I have attached my code followed by a sample text file.
Thanks!
Flight