मैं बस लॉगफाइल में लिखना (जोड़ना) चाहता हूं। मैं इसे यहाँ देखा:
http://www.cplusplus.com/reference/iostream/fstream/open/fstream fstream के साथ फ़ाइल में कैसे संलग्न करें :: ऐप ध्वज काम नहीं करता है
तो यह है कि क्या मैं
#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();
आप भी स्ट्रीम का उपयोग कर सकते हैं, आपका कोड उस के साथ काम करेगा। – isarandi