X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fbinary.cpp;h=229a98eb5bfe31e3903eba79e623de38ae9ca718;hb=6f30c5ef957e1775ff7e39a41e1e1aa99864dbd1;hp=08bc752be99a262c15f727773a64888c22ca2c88;hpb=1ca323cf3d3caa38587749aeabf8f6a31482810a;p=meshio%2Fmeshio.git diff --git a/src/binary.cpp b/src/binary.cpp index 08bc752..229a98e 100644 --- a/src/binary.cpp +++ b/src/binary.cpp @@ -124,12 +124,17 @@ FileWriter::FileWriter(const char *path) 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_); }