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个字节(8KB)。
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的处理目标略有不同:它趋于从二进制文件(即,并非主要包含人类可阅读的文本的文件)中读取信息。
The function loads the file data using a single call to fread , copying the data into a separate structure, before using a strcpy to move the data from the loaded string to the global string.
此函数通过调用fread装载文件数据,把数据复制到另一个结构中,然后使用strcpy把数据从装载的字符串转移到全局字符串中。
The function loads the file data using a single call to fread , copying the data into a separate structure, before using a strcpy to move the data from the loaded string to the global string.
此函数通过调用fread装载文件数据,把数据复制到另一个结构中,然后使用strcpy把数据从装载的字符串转移到全局字符串中。
应用推荐