摘要:
fread,对指定长度的文件数据。读取的长度远小于文件的总长度,怎么回事呢?查MSDN,fopen最后一个参数:tOpen in text (translated) mode.In this mode, CTRL+Z is interpreted as an end-of-file character on input.In files opened for reading/writing with "a+", fopen checks for a CTRL+Z at the end of the file and removes it, if possible.This 阅读全文