What is the use of seek() and tell() methods?
Question :
What is the use of seek() and tell() methods?
To access the contents of the randomly - seek and tell methods are used. tell() method returns an integer giving the current position of object in the file. The integer returned specifies the number of bytes from the beginning of the file till the current position of file object.