I am simply trying to read a .TXT file into my program and store it as a vector of CStrings (see attached code).
However, there seem to be EoF characters contained in some of the .TXT files and cutting short my input reading.
Is there anyway to ensure that when reading from a file, that the entire file is read?
Thank you in advance.
// Open the file
input.Open( full_filename, CFile::modeRead );
// While there is something to read, store it in the readings vector
while( input.Read( buffer ) && P.Continue )
readings.push_back( buffer );
// Close the input file