End of File

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
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.