Q.

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. sets the file’s current position at the offset
Explanation: sets the file’s current position at the offset. the method seek() sets the file’s current position at the offset.
1.4k
0
Do you find this helpful?
14

Discussion

No comments yet