March 2003
Intermediate to advanced
656 pages
39h 30m
English
FileInput
class FileInput(files=None,inplace=0,backup='',bufsize=0)
Creates and returns an instance f of class
FileInput. Arguments are the same as for
fileinput.input, and methods of
f have the same names, arguments, and
semantics as functions of module fileinput.
f also supplies a method
readline, which reads and returns the next line.
You can use class FileInput explicitly, rather
than the single implicit instance used by the functions of module
fileinput, when you want to nest or otherwise mix
loops that read lines from more than one sequence of files.
Read now
Unlock full access