ofstream causing memory increase
This is a mini test. The memory used by this C++ program increases from 1KB to 10MB while writing a string to a file. It seems that ofstream
didn’t release its memory after append.
std::ofstream causing memory increase
This is a mini test. The memery used by this cpp program increase from 1KB to 10MB while writing string to a file. It seems that ofstream didn’t release it’t memery after append.
avoid single quotes in ofstream file name
I have the following cpp code and it output a file name called ‘output.txt(0,0)-(3,5)’. Is there a way to avoid single quote in the filename?