   File IO
  I'm planning on storing some scores in a file that will contain many different things.  To read the scores, I'm openeing the file and reading it until I hit a tag that will let me know to start reading the scores.  My code thus far:    //find the scores "[scores]"while(true) {file.getline(input, sizeof(input), '\n');if (input == "[scores]")break;if (input == 'EOF') {scores_there = false;break;}}My compiler doesn't like the comparison to 'EOF', which brings me to my question.  How can I check if I've hit the end of the file?Edit: formatting for the code, typos[edited by - idhrendur on February 10, 2004 6:25:41 PM]
  if(file.eof()){ //end of file} ;  What made you think you could compare with ''EOF''? ;  Thank you very much! ;  I''m really out of practice for file I/O...I just remembered there was an EOF in there somewhere, and having no good reference materials...I tried the first thing I could think of.  When it failed, I decided to try asking for help. 