EOF( [#]fnbr )

Will return true if the file previously opened on the Flash Filesystem or SD Card for INPUT with the file number #fnbr is positioned at the end of the file.

The # is optional. Also see the OPEN, INPUT and LINE INPUT commands and the INPUT$ function.