[解决办法] 整型数据不能直接用fwrite写的,因为fwrite是对文件进行二进制操作,会把整数当成ascii码值写入的。 [解决办法] When a file is opened with the "a" or "a+" access type, all write operations occur at the end of the file. The file pointer can be repositioned using fseek or rewind, but is always moved back to the end of the file before any write operation is carried out. Thus, existing data cannot be overwritten.