从文件指针中读取一行 fgets
让我们开始从某个文件中读取一些行。
让我们编写一个输入函数来从文件中读取相应的行。
Let's write an input function to get the relevant lines from the file.
例如,如果XML资料已内嵌于更大的文件中,且资料从文件的101行开始,您可能会想要指定读取器从100行开始。
For example, if your XML data were embedded in a larger document, and your data started on line 101 of the document, you may want to specify that the reader start at line 100.
应用推荐