I use do{}while; loops alot in my programs, so I don't have to repeat steps again and again, my problem is, I call information from a flat file and set my condition to kill the do loop when it reaches the end of the file or my string comparisons don't match, however, all my programs seem to loop one more time after it meets the terminate loop condition and this is causing bad output from my program, it repeats the same output twice, the output is correct but repeated.... This is frustrating the heck out of me,
is there a better looping procedure that I should use or a better way of flagging the termination point.
I should add, the input from flat files is written by other programs using standard ifstream principles.....
Any help would be appreciated .... Thanks