C ++ file input and output operations

Here Insert Picture Description
This program can be seen, ofstream (output stream) output operation is not performed, but instead writes;
at the same time function as well as create a file ofstream such as:

ofstream fout("data.dat",iOS::binary);//二进制

ifstream can be read into the output

Guess you like

Origin blog.csdn.net/weixin_44769592/article/details/91348803