void Serializer::SaveToFile(wstring file)
{
	string str;

	SaveToString(str);
	ofstream of((wchar_t* )file.c_str());
	of.write(str.c_str(), str.size());
	of.close();
}
Esempio n. 2
0
	bool INI::SaveToFile(std::string filename)
	{
		std::string data = SaveToString();
		std::ofstream file(filename, std::ios::out);
		if (!file) return false;
		file << data;
		file.close();
		return true;
	}