std::ofstream implicitly sets std::ios::out