Thread: test score
View Single Post
Old Oct 3rd, 2006, 12:03 AM   #7
brad sue
Hobbyist Programmer
 
Join Date: Mar 2006
Posts: 120
Rep Power: 3 brad sue is on a distinguished road
Quote:
Originally Posted by DaWei View Post
Sure, EOF is the issue. Your last read grabs the last line and newline. That is not EOF, since you haven't attempted to read beyond it. The "while (fin)" looks fine, so you attempt to read again and hit EOF. You aren't checking for that. This is one of most common novice mistakes.
Dawei, can I have some clarifications about what you are saying because I am not able to see what to modify.
Thank you
B
brad sue is offline   Reply With Quote