CBSE Class 12 Computer Science
Question 52 of 136
Data File Handling — Question 17
Back to all questionsfp.seek(offset, 0)
Reason — The syntax for relative referencing is f.seek(offset, from_what). The statement f.seek(offset, 0) is used to change the file position to an offset value from the start, where 0 sets the reference point at the beginning of the file.