std::fstream outStream;
std::string _logPath;
outStream.open(_logPath.c_str(), std::ios::out);
if (outStream.fail())
{
OE_WARN << LC << "Unable to open " << _logPath << " for logging shaders." << std::endl;
}
else
{
outStream << buf.str();
outStream.close();
}
C++学习(四四八)fstream写文件
最新推荐文章于 2023-12-13 12:55:43 发布