ログファイルに単に書き込み(追加)したいだけです。私はここでそれを見上げ:
http://www.cplusplus.com/reference/iostream/fstream/open/fstreamでファイルに追加する方法fstream :: appフラグが機能していないようです
ので、これは私が
#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();
また、ofstreamを使用することもできます。コードはそのコードで動作します。 – isarandi