More node stuff.

This commit is contained in:
momo5502
2016-01-28 21:37:48 +01:00
parent e79ac58f8e
commit b350c3774b
7 changed files with 202 additions and 47 deletions

View File

@ -138,8 +138,12 @@ namespace Utils
void WriteFile(std::string file, std::string data)
{
std::ofstream stream(file, std::ios::binary);
stream.write(data.data(), data.size());
stream.close();
if (stream.is_open())
{
stream.write(data.data(), data.size());
stream.close();
}
}
std::string ReadFile(std::string file)