std::ofstream -> std::ios