90c90
< OutputDirectory::create(const string &name)
---
> OutputDirectory::create(const string &name, bool binary)
98c98,99
< ofstream *file = new ofstream(resolve(name).c_str(), ios::trunc);
---
> ofstream *file = new ofstream(resolve(name).c_str(),
> ios::trunc | binary ? ios::binary : (ios::openmode)0);