>>336
第四の選択肢
std::fstream ofs("foo.txt", ofs.out | ofs.binary);