The file method _______ is used to obtain the current position of the file read/write pointer.

  • current_position()
  • file_position()
  • get_position()
  • tell()
The tell() method in Python's file handling is used to obtain the current position of the file read/write pointer. It returns an integer representing the current position in bytes. This is crucial when you want to navigate through a file or keep track of where you are when reading or writing data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *