io_=fopen(path, "wb");
}
+FileWriter::FileWriter(const wchar_t *path)
+{
+ io_=_wfopen(path, L"wb");
+}
+
FileWriter::~FileWriter()
{
fclose(io_);
}
-void FileWriter::write(char *buf, unsigned int size)
+void FileWriter::write(const char *buf, unsigned int size)
{
fwrite(buf, size, 1, io_);
}