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]
[loop]
  input #1, text$
  print text$
  if eof(#1) = 0 then [loop]
[skipIt]
  close #1

LOF(#handle)

This function returns the number of bytes contained in the open file referenced by #handle.

