March 2003
Intermediate to advanced
656 pages
39h 30m
English
seek
m.seek(pos,how=0)
Sets
the file pointer of m to the integer byte
offset pos. how
indicates the reference point (point 0): when
how is 0, the reference
point is the start of the file; when 1,
m’s current file pointer;
when 2, the end of m. A
seek that tries to set
m’s file pointer to a
negative byte offset, or to a positive offset beyond
m’s length, raises a
ValueError exception.
Read now
Unlock full access