SEEK - QB64 Wiki


From QB64 Wiki

Revision as of 02:58, 6 February 2014 by Cyperium (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The SEEK function returns the current byte or record position in a file.


byte = SEEK(filenumber&)

  • Filenumber is the number of an OPEN file in any mode.
  • In RANDOM files SEEK returns the current record position.
  • In BINARY or sequencial files SEEK returns the current byte position(first byte = 1).
  • Since the first file position is 1 it may require adding one to an offset value when documentation uses that position as 0.
  • Devices that do not support SEEK (SCRN, CONS, KBRD, COMn and LPTn) return 0.

See also:

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Personal tools
  • Talk for this IP
  • Log in