Using MS Visual C++ 6.0.
Command line project.
I'm trying to write a project (as part of an assignmet) that reads all text from a .txt document and breaks each word down into seperate string segments.
I'm stuck at the part where I'm reading the file. I'm using ifstream for the file input. I am reading the file just fine usingI'm using a while loop, and pushing the characters I get from the file to a vector.Code:filename_variable.get();
The Problem: The problem I'm having is that I can't get the while loop to recognize eof on the file.
Can anyone give me some ideas here?