fread和fwrite的使用 fread和fwrite一般用于二进制文件的输入/输出,要不然你打开fwrite写入的文件就是乱码. 1.fread和fwrite函数 数据块I/O fread与fwrite函数原型:size_t fread(void *buffer, size_t size, size_t, count, FILE *pf)size_t fwrite(void *buffer, size_t size, size_t count, FILE *pf)功能:读写数据块(将内存的内