ID EN
OS

lseek

Python 3.11

Set the current position of file descriptor fd to position pos, modified by whence, and return the new position in bytes relative to the start of the file. Valid values for whence are:

Syntax

PYTHON
os.lseek(fd, pos, whence, /)

See Also

SEEK_SET SEEK_CUR SEEK_END SEEK_HOLE SEEK_DATA