Skip to content

Instantly share code, notes, and snippets.

@dgw
Created August 20, 2013 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgw/6286658 to your computer and use it in GitHub Desktop.
Save dgw/6286658 to your computer and use it in GitHub Desktop.
log.cpp changes
CFile LogFile(sPath);
CString sLogDir = LogFile.GetDir();
struct stat ModDirInfo;
CFile::GetInfo(GetSavePath(), ModDirInfo);
if (!CFile::Exists(sLogDir)) CDir::MakeDir(sLogDir, ModDirInfo.st_mode);
if (LogFile.Open(O_WRONLY | O_APPEND | O_CREAT))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment