Computer Science

Which of the following option is the correct usage for the tell() of a file object ?

  1. It places the file pointer at a desired offset in a file.
  2. It returns the entire content of a file.
  3. It returns the byte position of the file pointer as an integer.
  4. It tells the details about the file.

Python File Handling

3 Likes

Answer

It returns the byte position of the file pointer as an integer.

Reason — The tell() function returns the current byte position of file pointer in the file as an integer.

Answered By

1 Like


Related Questions