SEEK

Top  Previous  Next

Syntax

INT64 = SEEK(fptr as BFILE,OPT position as INT64)

Description

Moves the file pointer of a binary file to the specified position or returns the current position.

Parameters

fprt - A variable of type BFILE successfully opened with OPENFILE

position - Optional. Position to set file pointer to.

Return value

If position is omitted then this function returns the current file position.

Remarks

See Also OPENFILE

Example usage

where = SEEK(myfile)
SEEK myfile, where+2