fstream兼容c++98

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