diff --git a/test_problems/shared/fileLog.h b/test_problems/shared/fileLog.h index f7cd9c4d9..fda515d2f 100644 --- a/test_problems/shared/fileLog.h +++ b/test_problems/shared/fileLog.h @@ -7,11 +7,15 @@ class fileLog: public Cantera::Logger public: explicit fileLog(const std::string& fName) { m_fName = fName; - m_fs.open(fName.c_str()); + m_fs.open(fName.c_str(), std::ios::out); } virtual void write(const std::string& msg) { - m_fs << msg << std::endl; + m_fs << msg; + } + + virtual void writeendl() { + m_fs << std::endl; } virtual ~fileLog() {