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

代码

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

  

猜你喜欢

转载自www.cnblogs.com/alexYuin/p/9614154.html