std::ios::out Open for output operations. std::ios::binary Open in binary mode. std::ios::ate Set the initial position at the end of the file. If this flag is not set, the initial position is the ...