bas7advr.hlp (Topic list)
LOC Function Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
LOC returns the current position within an open file.
 
LOC(filenumber%)
 
Usage Notes
    ■ For a COM device, LOC returns the number of characters in the input
      queue waiting to be read. The value returned depends on whether the
      device was opened in ASCII or binary mode.
    ■ In ASCII mode, the low-level routines stop queuing characters as
      soon as end-of-file is received. The end-of-file itself is not
      queued and cannot be read. If you attempt to read the end-of-file,
      BASIC generates the error message, "Input past end of file."
    ■ In binary mode, the end-of-file character is ignored and the entire
      file can be read.
    ■ For a PIPE device, LOC returns 1 if any data is available in the
      PIPE queue.
 
Important
    ■ The LOC function cannot be used on ISAM tables, or the SCRN, KYBD,
      or LPTn devices.