# SEEK()

Syntax:

Then: aa = SEEK(handle,offset,whence)
Then: aa = SEEK(handle,offset)

"handle" is the file handle returned by OPEN() or CREATE().
"offset" is the position within the file.
"whence" flags how to interpret the offset.

Parameters

whence 0 - absolute position in the file
1 - position relative to the current position
2 - position relative to end-of-file

Return value
Returns the resulting absolute position in the file.

Note: Offset can be negative when using relative positioning.

Version Ref: 4.5

Description:

Sets the current location within an opened file.