Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

SEEK

Returns the current file pointer position.

Syntax

SEEK(file_number)

Comments

file_number is the file number assigned to the file in its OPEN statement.

For random-access files, SEEK returns a record number in the range 1 through 2,147,483,647. For binary and sequential files, SEEK returns the current byte offset.

Example

position = SEEK(1)

See Also