I am currently trying to develop an algorithm for the following problem:
Read data from a text file such as:
the driver returns on his glorious day.
He's very happy to be safe and.sound at home, with his wife.
With that data, i need to print the length of each word in the file and the total number of words in the file. But symbols such as . or , or ' cannot be included in the word length.
I was thinking that a nested loop would work, with the outer loop running until the end of file, and the inner loop testing to see if each word contained a period, comma or apostrophe, but i am having trouble implementing this into VB. Is that the right approach or am i totally off track?