C++创建或者打开文本,记录运行日志

代码

std::fstream f;
f.open("D:/debugTime.txt", std::ios::app);
f << "time of XXX :" << 10 << std::endl;
f.close();

  

 

posted @ 2018-09-09 16:54  路边的十元钱硬币  阅读(185)  评论(0编辑  收藏  举报