I just realized I never closed the file in my read_file() function. I now added the close-method, but the error remains.
In my whole appendto_file()-Method I am doing 2 things:
- I am opening and showing the content of a usergiven file, and close that ifstream-object named 'appendfile'.
- I am re-opening the file, using fstream, creating an object named 'appendfiletwo', appending a usergiven
content to that usergiven file, and close the fstream.
I just used two different names for the ifstream-object and for the fstream-object, in order do distinguish between them.



LinkBack URL
About LinkBacks



