My program is menu driven. So when i choose option '1' for example, i would like the program to display all the text in the file.
Strangely, when i choose option '1' for the first time, it displays everything correctly. After the loop has finished, i go to display the text again but nothing happens. So to see the log i need to keep reloading the program basically.
So basically, i want to make it so i can display the log in the console as many times as i choose the option to do so and not only once and having to recompile and run the program.
I don't see anything there that could be failing. How about posting code from after the decision. I mean after it's been determined that the selected option is 1.
Yes i am. When the loop reaches end of file. It returns back to the menu, and as i say, selecting option '1' again does not display the file contents :S. But i am able to select other menu options (not shown).