What is the use of seek() method in files?
A. sets the file’s current position at the offset
B. sets the file’s previous position at the offset
C. sets the file’s current position within the file
D. None of the mentioned
Answer:A
What is the use of seek() method in files?
A. sets the file’s current position at the offset B. sets the file’s previous position at the offset C. sets the file’s current position within the file D. None of the mentioned
Explanation: Sets the file’s current position at the offset. The method seek() sets the file’s current position at the offset.