Seek Function

Named Arguments

No

Syntax

Seek(filenumber)


filenumber

Use: Required

Data Type: Integer

Any valid file number.

Return Value

A Long integer indicating the current read/write position.

Description

Returns the current position of the read and write marker in the open file filenumber.

Rules at a Glance

  • The Seek function returns a whole number in the range 1 to 2,147,483,647.

  • If filenumber was opened in random mode, the number returned by the Seek function refers to the next record to be written or read.

  • In all other file open modes (append, binary, input, and output), the number returned by the Seek function is the byte position at which the next read or write operation occurs.

See Also

Get Statement, Open Statement, Print# Statement, Put Statement, Write# Statement
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.104.188