[Tutor] Moving file pointer

Gus Tabares gustabares at verizon.net
Thu Jul 29 20:03:53 CEST 2004

Hi all,

I'm trying to set the file pointer for a file on a posix machine. For
instance, I have a simple 5-byte file with data 'abcde'. I want to
'extend' the file to 10-bytes, but not initialize any data in those
extra 5-bytes. They should be all zeros.

This is analogous to win32file.SetFilePointer routine.

Does anyone have any pointers (no pun intended) to a solution?


More information about the Tutor mailing list