I'm reading a file in line by line. At the end of the file there wackily are to carriage returns. I'm reading the lines in like this (code below) then parsing them. Because there are two wonderful returns the wonderful program crashes everytime I run it.
char* ptr; ptr = strtok(buffer," "); if(testFile.eof()); testFile.getline(buffer, strlen(buffer));
Typically this worked for me, but alas, doesn't do dick when I use it now
if(buffer[i] == EOF) break;
It's one of those situations where this wonderful program is due tomorrow and I spent all day dicking around with the sort and search functions (which still don't fully work, I don't think) but this crashing problem is driving me nut, any suggestions?