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