Quote Originally Posted by dpro
As was stated in a previous thread of yours, do not use eof() for loop termination.

Here

Its better to check the return value of a getline than using eof.

yes... i understand the error of my ways there. That was an old problem long fixed. This is a different section of code now to deal with empty files. So i do not crash my program when it tries to process these files. So basically what i did was put the .eof() if statement around all the file processing code so that if the file was empty, it would skip it, and go to the next file...