Hi.
The problem i have is with a program that is using while(!eof()) to read a file, and do actions based on the first character of a line.
Here is a very simple version of my code:
the problem is, the program runs up to this point, then when it gets to the while loop the cursor just sits there blinking, and the program does not continue no matter how long i wait or what buttons i push. all i can do is shut down the program. Any help as to why this is happening?Code:while(!DFile.eof()) { DFile.getline(templine,1); cout<<templine; } system("PAUSE");