ID EN
IO

seek

Python 3.11

Change the stream position to the given byte offset, interpreted relative to the position indicated by whence, and return the new absolute position. Values for whence are:

Syntax

PYTHON
seek(offset, whence=os.SEEK_SET, /)

See Also

os.SEEK_SET os.SEEK_CUR os.SEEK_END os.SEEK_HOLE os.SEEK_DATA