INCLAN: readline

From CYANA Wiki
Jump to navigation Jump to search

Synopsis

readline file variable [close]

Description

Reads one line from a file and assigns it to a variable. If the file is not yet open, it is opened and the first line is read. If the file is already open, the next line is read. If the end of the file is reached, the variable is set to EOF and the file is closed. Optionally, the file can be closed after reading a line.