Liberty BASIC Help Online

EOF( #h )
This function is used to determine when reading from a sequential file whether the end of the file has been reached.  If so, -1 is returned, otherwise 0 is returned.
  open "testfile" for input as #1
  if eof(#1) < 0 then [skipIt]
  input #1, text$
  print text$
  if eof(#1) = 0 then [loop]
  close #1

Copyright (C) 2003 Shoptalk Systems
Liberty BASIC -