not making sense
I am writing code that opens and reads from a file.
In the code the user inputs file name to read, if file name not found
then code is to ask user for correct file name
In c++ a flag is set to give fail for finding file. The instructor emailed the class and told us to use this code
to clear the flag
I do this and yes it clears the flag but it also clears everything in the file that I am reading from.
Is there another way to clear the flag, am i misunderstanding the instructor.
I can get the program to do what it needs to do except for this error test.