I am working on a class assignment that doesn't meet for a few more days. The assignment is to open a text file, and parse the file one word at a time, reading each word into one of 26 arrays based on the first letter of the word. I can open the text file just fine and have read it into a variable called textfile.
Next, I just need to figure out how to parse one word at a time. I found something similar here: http://www.daniweb.com/forums/thread254299.html but that seems to automatically put every word into one array. I guess from there I could re-iterate the array and move each word to the correct array.
But what I am really curious about, is how do you read one word at a time from a text file?
For the assignment we can't use templates or OOP.