INCLAN: readline: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
== Synopsis == | |||
'''readline''' ''file'' ''variable'' ['''close'''] | |||
== Description == | |||
If | |||
the next line is read. If the end | 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. | ||
Latest revision as of 16:35, 13 August 2009
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.