列表3 .更新新的行指针,并返回测试数据。
列表1 .获得文件行指针并初始化返回变量。
Listing 1. Get file row pointer and initialize return variable.
为了简单起见,如果已经到达了文件的末端,您应该使这个行指针回到开始。
For simplicity, you should have the row pointer always wrap back to the beginning if the end of the file is reached.
应用推荐