I'm using fstream to load a *.txt file with about 1.3 MB of text. I have a
Since whole file can't be put into "text[10000]", i'm doing it multiple timesCode:char text[10000]; ifstream fin;
The problem is that "fin.read()" refuses to read the text last time, I have loadedCode:while(true) { fin.read(text, 9999); text[9999] = NULL; ... writing this text somewhere if(fin.eof())break; }
varius files, and it always skiped reading last time. And eof() returns true no matter
"fin.read" refused...
Is there a solution to this???