End of File

Nov 1, 2015 at 5:59pm
Hey Guys. I need help with my program. I'm trying to read from the end of file and then print it onto the screen. But when I run the program it goes into an endless loop when I'm reading files. How would I fix this?
Last edited on Nov 2, 2015 at 5:40am
Nov 1, 2015 at 8:18pm
Are you sure the file actually opened? You really should check to insure the file actually opens correctly and remember there are more failure modes than just eof() and if one of these other failure modes is present the loop will probably never end.
Topic archived. No new replies allowed.