SEEK( ):
The Python File seek() method sets the file's cursor at a specified position in
the current file. A file's cursor is used to store the current position of the read
and write operations in a file; and this method can move this file cursor
forward or backward.
SYNTAX:
fileObject.seek(offset[, whence])
Parameters
Offset − This is the number of positions of the read/write pointer to
move within the file.
whence − (Optional) It defaults to 0; which means absolute file
positioning, other values are 1 which means seek relative to the
current position and 2 means seek relative to the file's end.
Tell( )
Python tell function is used to determine the current position or location
of the file pointer.
File: