March 2003
Intermediate to advanced
656 pages
39h 30m
English
write
m.write(str)
Writes
the bytes in str into
m and at the current position of
m’s file pointer,
overwriting the bytes that were there, and then advances
m’s file pointer by
len(
str
).
If there aren’t at least
len(
str
)
bytes between m’s file
pointer and the length of m,
write raises a ValueError
exception.