March 2003
Intermediate to advanced
656 pages
39h 30m
English
read
f.read(size=-1)Reads up to size bytes from
f’s file and returns them
as a string. read reads and returns less than
size bytes if the file ends before
size bytes are read. When
size is less than 0,
read reads and returns all bytes up to the end of
the file. read returns an empty string only if the
file’s current position is at the end of the file or
if size equals 0.