[Tutor] help with lseek of os

dinakar desai Desai.Dinakar@mayo.edu
Mon, 23 Oct 2000 14:03:39 -0500 (CDT)

Hello All:

I am posting for the first time. few weeks back I started with python and
I know C++. I would like to seek to particular location in file depending
on size of record (which are stored as binary file). In C++, I do it with
seekg(pos * sizeof(record)).
I looked into python os module and there is function lseek. I do not know
what it expects for "file descriptor", pos and how. can anyone
please explain and
give an short example with filename like "myfile"

Thank you.