std::ofstream out(a_burstLogFile.c_str(), std::ifstream::out | std::ifstream::app);
out.write(buffer.c_str(), buffer.size());
out.close(); // close() will be called when the object is destructed (i.e., when it goes out of scope).
std::ofstream out(a_burstLogFile.c_str(), std::ifstream::out | std::ifstream::app);
out.write(buffer.c_str(), buffer.size());
out.close(); // close() will be called when the object is destructed (i.e., when it goes out of scope).