0

I'm using

std::ofstream cout(output_path);

to output text to a file. If I try to use this call in both my main function and a separate function, the previous text data is erased from the file with each call. Is there a way to ensure that changes I make to the text file between calls are kept?

mooglin
  • 173
  • 1
  • 6

0 Answers0