Hello everyone, so I'm attempting to make a file to keep important activities and dates, however, I cannot get my menu to loop back after the file is displayed. This is my first post and I'm trying to follow the guidelines as best as I can, if I have done anything wrong please correct me. I can not tell if it is a problem with my main function or my readFile.
A couple of minor points.
L10: There is no reason to call is_open() a second time. You could use an else, but really there is no need for the second if statement at all.
L28,45: If menuChoice is invalid, you're going to call getMenu() twice. Remove line 45.
Other than those two minor points, I don't see anything wrong with your code.
Have you stepped through your code with a debugger?