Where can I find info/techniques on bringing in words from a file so that I may place them into an assorted list. Well, placing them in an assorted list another topic that I will have to read up on but I at least want to know how to read in word by word.
I want to be able to use something like this:
1 2 3 4 5 6 7 8 9
int main(int argc,char argv[]) {
std::string filestring = std::string(argv[1]);
std::ifstream file(filename.c_str());
string word;
while (is >> word)
......
Wy would you need to do anything to the file after extracting the word? The next loop checks that the stream is not good and that's that. Or am I missing something?