Use while (!myInfile1.eof()) in place of line 35 and also close file handler at line 70) myInfile1.close();
No, don't. Here's why ( feof() is the same as .eof()
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944