ENDFILE returns a '1'B when the end of the file is reached; '0'B if the end is not reached. If the file is not open, the ERROR condition is raised.
|
ENDFILE can be used to detect the end-of-file condition for bytestream files; for example, files that require the use of the FILEREAD built-in function.