When reading a file one line at a time using the ReadRecord() method you must open the file first with the
Open(‘READ’) method and close it afterwards with the
Close() method. Each line read from the file will be returned as a
STRING until the end of the file is reached, when you get an
UNSET STRING returned.
The UNSET string can be detected using the
STRING object's
Set() method (or
Unset()) as in the example above (See
Example).