File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -275,20 +275,20 @@ bool WSJCppCore::makeDir(const std::string &sDirname) {
275275 std::cout << " FAILED create folder " << sDirname << std::endl;
276276 return false ;
277277 }
278- std::cout << " nStatus: " << nStatus << std::endl;
278+ // std::cout << "nStatus: " << nStatus << std::endl;
279279 return true ;
280280}
281281
282282// ---------------------------------------------------------------------
283283
284284bool WSJCppCore::writeFile (const std::string &sFilename , const std::string &sContent ) {
285285
286- std::ofstream f (sFilename , std::ifstream::in);
286+ // std::ofstream f(sFilename, std::ifstream::in);
287+ std::ofstream f (sFilename , std::ios::out);
287288 if (!f) {
288- std::cout << " FAILED could not create file to wtite " << sFilename << std::endl ;
289+ WSJCppLog::err ( " WSJCppCore " , " Could not create file to write ' " + sFilename + " ' " ) ;
289290 return false ;
290291 }
291-
292292 f << sContent << std::endl;
293293 f.close ();
294294 return true ;
You can’t perform that action at this time.
0 commit comments