fix std::ios_base::openmode. [ci skip]

Signed-off-by: jack <jack.wgm@gmail.com>