When saving something to a text file is there a way to not override whats in the file already?
EX.
blah.txt
this is an example
fout << "of saving to a file.";
i want the “of saving to a file” to be added on to “this is an example” not to override it.
use the append flag, like this:
if you are opening it after declaration, use something like this: