March 2003
Intermediate to advanced
656 pages
39h 30m
English
readlines
f.readlines(size=-1)Reads and returns a list of all lines in
f’s file, each a string
ending in \n. If
size
>0,
readlines stops and returns the list after
collecting data for a total of about size
bytes, rather than reading all the way to the end of the file.