March 2003
Intermediate to advanced
656 pages
39h 30m
English
readline
f.readline(size=-1)Reads and returns one line from
f’s file, up to the end
of line (\n) included. If
size is greater than or equal to
0, readline reads no more than
about size bytes. In this case, the
returned string may not end with \n.
\n may also be absent if
readline reads up to the end of the file without
finding \n. readline returns an
empty string only if the file’s current position is
at the end of the file or if size equals
0.