SetFilePointer (open)

Set the current file pointer

Syntax

LOADLIB "wh::files.whlib";

MACRO SetFilePointer(INTEGER filehandle, INTEGER64 newpos)

Parameters

INTEGER filehandle

ID of file, as returned by OpenBlobAsFile, OpenDiskFile or CreateDiskFile

INTEGER64 newpos

New position for the file pointer, in bytes

Description

Set the location (in the range 0 to the length of file) where the next read or write will take place. If the location is moved or beyond the end of the file, any newly written data will be appended