English

Which of the following functions changes the position of file pointer and returns its new position?

Advertisements
Advertisements

Question

Which of the following functions changes the position of file pointer and returns its new position?

Options

  • flush ()

  • tell ()

  • seek ()

  • offset ()

MCQ
Advertisements

Solution

seek ()

Explanation:

The seek () function moves the file pointer to a given byte position.

shaalaa.com
Setting Offsets in a File in python
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×