win32file.SetFilePointer

SetFilePointer(handle, offset, moveMethod)

Moves the file pointer of an open file.

Parameters

handle : PyHANDLE

The file to perform the operation on.

offset : Py_LARGEINTEGER

Offset to move the file pointer.

moveMethod : int

Starting point for the file pointer move. This parameter can be one of the following values.

Value Meaning


FILE_BEGINThe starting point is zero or the beginning of the file.
FILE_CURRENTThe starting point is the current value of the file pointer.
FILE_ENDThe starting point is the current end-of-file position.