Advertisements
Advertisements
Question
Which of the following functions changes the position of file pointer and returns its new position?
Options
flush ()
tell ()
seek ()
offset ()
MCQ
Solution
seek ()
Explanation:
The seek () function moves the file pointer to a given byte position.
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 correct syntax of seek() is ______
The syntax of seek() is:
file_object.seek(offset[,reference_point])
What is the default value of reference_point
?