... opendir readdir closedir - 开启、读取、关闭目录 fopen fclose - 开启、关闭文件 fgets fgetss - 逐行读取内容 ...
基于1个网页-相关网页
For any of these methods, you go through the standard process of using fopen to open the file, a function to read the data, then fclose to close the file, as shown in Listing 1.
对于这些方法中的任何一种,通过使用fopen(用于读取数据的函数)的标准方法打开文件,然后使用fclose关闭文件,如清单1所示。
It shows appropriate use of some system calls and library functions from c, including fopen, fclose, access, setvbuf, perror, strerror, and popen.
它演示了对一些系统调用和c库函数的适当使用,其中包括fopen、fclose、access、setvbuf、perror、strerror和popen。
Skipping ahead to the end of Listing 1, fclose serves the opposite function of fopen: it closes the connection to the file or URL.
向前跳至清单1的末尾,fclose将实现与fopen相反的功能:它将关闭指向文件或URL的连接。
应用推荐