Site hosted by Angelfire.com: Build your free website today!
NAME
  EOF Function

SYNOPSIS
  EOF(filenumber%)
      o filenumber%    The number of an open file.

DESCRIPTION
  Tests for the end of a file. EOF returns true (nonzero) if the end of a file
  has been reached.

  Example:
      CLS
      OPEN "TEST.DAT" FOR OUTPUT AS #1
      FOR i% = 1 TO 10
          WRITE #1, i%, 2 * i%, 5 * i%
      NEXT i%
      CLOSE #1
      OPEN "TEST.DAT" FOR INPUT AS #1
      DO
          LINE INPUT #1, a$
          PRINT a$
      LOOP UNTIL (EOF(1))

SEE ALSO
  CLOSE LOC LOF OPEN