file.pos

Syntax

i = file.pos(<f>)
file.pos(<f>) = i

Get/set the current position in bytes. The most recently opened file is used if no arguments are provided.

Note

When setting the file position, the user is responsible for ensuring there is a valid record at the given position.

Returns:i - current file position
Accepts:i - current file position
Arguments:f - optional file pointer