V
vsgdp
Hello,
Suppose I use one ifstream object for the life of a program.
If the user opts to load/save I call
inFile.open(...);
....
inFile.close();
Whenever the menu item is selected.
However, this does not work. I was able to get it to work by calling:
inFile.close();
inFile.clear();
But my question is, why must I call the clear method?
Suppose I use one ifstream object for the life of a program.
If the user opts to load/save I call
inFile.open(...);
....
inFile.close();
Whenever the menu item is selected.
However, this does not work. I was able to get it to work by calling:
inFile.close();
inFile.clear();
But my question is, why must I call the clear method?