int fclose( std::FILE* stream );
Parameters
stream - the file stream to close
Return value
0 on success, EOF otherwise
文件写入函数
std::size_t fwrite( const void* buffer, std::size_t size, std::size_t count, std::FILE* stream );
Parameters
buffer - pointer to the first object object in the array to be written
size - size of each object in bytes
count - the number of the objects to be written
stream - output file stream to write to
Return value
Number of objects written successfully, which may be less than count if an error occurred.
If size or count is zero, fwrite re