Reading from Files
- Last UpdatedOct 24, 2022
- 1 minute read
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 Set() method of the STRING object (or Unset()) as in the example above (see Example for Methods of an Object).