Hi
I'm having trouble with breaking from a loop when I reach the end of a line. Basically the program moves through each line, loads it into memory and checks a variable to see if it matches one input by a user. That works fine, if the variable is there it catches it but if it is not there it just hangs. I have printed out the result of in.eof() to the screen but all I seem to get is 1. I am using this code to check if it is the end of a file:
Any help that you could give me would be greatly appreciated.Code:while(!in.eof()) { //Read in Line and check variable }
Cheers