SEEK

SEEK #handle, position

Description:

This command seeks to the desired point in the file for reading or writing in a file opened for BINARY access. SEEK sets the file pointer to the location specified. Data will be read from or written to the file at the location of the file pointer. See also: LOC( #h )

#handle

This parameter is the handle of a file opened for binary access.

position

This is the new location for the file pointer.

Usage:

  open "myfile.ext" for binary as #handle
  'seek to file position
  seek #handle, fpos