+ 1

Define seek() in file handling.

And also Define its mode(0,1,2).

29th Sep 2020, 8:14 AM
Raj Maddheshiya
Raj Maddheshiya - avatar
4 Answers
+ 6
Raj Maddheshiya , to find the desired information, just use a browser and go to the original python docs. You can find there all about file handling, including using seek() and the arguments that can be used.
29th Sep 2020, 9:38 AM
Lothar
Lothar - avatar
+ 3
seek() is all about the placement of the cursor in a file.
29th Sep 2020, 8:44 AM
Slick
Slick - avatar
+ 1
Also its mode?
29th Sep 2020, 1:10 PM
Raj Maddheshiya
Raj Maddheshiya - avatar
+ 1
from https://www.tutorialspoint.com/JUMP_LINK__&&__python__&&__JUMP_LINK/file_seek.htm "This is optional and defaults to 0 which means absolute file positioning, other values are 1 which means seek relative to the current position and 2 means seek relative to the file's end."
29th Sep 2020, 1:12 PM
Slick
Slick - avatar