A line reader supports the name attribute and readline() function of a file object but none of the others. Its job is to keep track of line numbers in the file object.
Public Variables:
Name of the file.
def __init__(self, file, lineNum = 1):
Constructs a new LineReader from a file object. If lineNum is
specified, it should be the initial line number.
Closes the LineReader and its associated file.
Returns the current line number of the file. This is also supported as
lineNumber() for backwards compatibility.
Reads and returns the next line from the file.
close(self)
def close(self):
getLineNumber(self)
def getLineNumber(self):
readline(self)
def readline(self):