提交 73d2f7c7 编写于 作者: S starlord

fix jenkins build error


Former-commit-id: bb994c21d69fb9f8c2c6c57e5389b6133e662c0d
上级 d51b0ca2
......@@ -17,6 +17,7 @@
#include "server/utils.h"
#include <fstream>
#include <iostream>
#include <thread>
#include <string>
......@@ -67,12 +68,11 @@ static const char* INVALID_CONFIG_STR = "*INVALID*";
void
WriteToFile(const char* file_path, const char* content) {
boost::filesystem::path fpath(file_path);
boost::filesystem::fstream fstream(fpath, std::ios_base::out);
std::fstream fs(file_path, std::ios_base::out);
//write data to file
fstream << content;
fstream.close();
fs << content;
fs.close();
}
} // namespace
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册