In this case, you should use the readline method, as shown in Listing 5.
在这种情况下,应当使用readline方法,如清单5所示。
When you reach the end of the file, the readline method returns an empty string.
当到达文件末尾时,readline方法返回一个空的string。
When you reach the end of the file, the readline method returns an empty string.
当到达文件末尾时,readline方法返回一个空的string。
应用推荐