Ich möchte einfach (anhängen) in eine Logdatei. Ich sah es hier oben:
http://www.cplusplus.com/reference/iostream/fstream/open/Wie an eine Datei mit fstream angefügt werden fstream :: app-Flag scheint nicht zu funktionieren
so das, was ich tat
ist#include <fstream>
fstream outfile;
//outfile.open("/tmp/debug.txt"); // works, simply for writing
outfile.open("/tmp/debug.txt", fstream::app); // does nothing
outfile << "START" << endl;
outfile.close();
Sie können auch Ofstream verwenden, Ihr Code würde damit arbeiten. – isarandi