Question:

seek(1) method in files used for:

Show Hint

`seek()` = reposition the file pointer. `seek(1)` means go to position 1 in the file.
Updated On: Apr 28, 2025
  • Sets the file's current position at the offset
  • Sets the file's previous position at the offset
  • Sets the file's current position within the file
  • Tells you the file is opened or not
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

The `seek(offset)` method in Python sets the file’s current position at the specified offset. It is commonly used to navigate to a specific byte within a file for reading or writing.
Was this answer helpful?
0
0

Top Questions on File Handling in Python

View More Questions