LOC( #h )

LOC( #handle )

Description:

The LOC( #handle ) function retrieves the current position of the file pointer when a file whose handle is specified has been opened for BINARY access. The current position of the file pointer is used when reading or writing data to a binary file. See also: SEEK

Usage:

open "myfile.ext" for binary as #handle

'get the current file position

fpos = loc(#handle)