0% found this document useful (0 votes)
34 views4 pages

File Handling Theory

Ip project for computer and other subjects
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views4 pages

File Handling Theory

Ip project for computer and other subjects
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

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:

You might also like