fread fscanf 读文件
This part of the program is also conventional PHP - in this case, with fread.
程序的这一部分也符合常规php——在本例中,使用fread。
Note that no matter what number you specify, fread will not read more than 8,192 bytes (8 KB).
不管指定多少字节,fread都不会读取超过8,192个字节(8 KB)。
The fread function serves a slightly different purpose from fgets: It is intended to read from binary files (that is, files that don't consist primarily of human-readable text).
fread 函数与 fgets 的处理目标略有不同:它趋于从二进制文件(即,并非主要包含人类可阅读的文本的文件)中读取信息。
应用推荐