n.C语言中从文件中获取字符串函数
网络 函数; 一次读取一行; 读取文件一行内容
Repeat the loop until fgets returns NULL.
重复该循环直至fgets返回NULL。
Well, you saw an example using a loop with fgets.
好的,您看到了fgets使用循环的示例。
(As we´ve seen above, fgets returns NULL while getc returns EOF.)
正如我们在上面看到的,fgets返回NULL而getc返回e OF。
The fgets function is your weapon of choice for this first example.
fgets函数是处理第一个示例的首选武器。
The fgets() function is used to read a single line from a file.
函数用来读取文件中的一行内容。