Advertisements
Advertisements
Question
The correct syntax of seek() is ______
Options
file_object.seek(offset [, reference_point])
seek(offset [, reference_point])
seek(offset, file_object)
seek.file_object(offset)
MCQ
Fill in the Blanks
Solution
The correct syntax of seek() is
file_object.seek(offset [, reference_point])
shaalaa.com
Setting Offsets in a File
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
To position the file object at a particular position in file, we use ______.
Write the use and syntax for the following method:
seek()
The syntax of seek() is:
file_object.seek(offset[,reference_point])
What is the default value of reference_point
?
Which of the following functions changes the position of file pointer and returns its new position?