Readline: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= readline =
     
Usage: readline ''file'' ''variable'' [close]
Usage: readline ''file'' ''variable'' [close]



Latest revision as of 20:18, 28 January 2009

readline

Usage: readline file variable [close]

The statements "readline" reads one line from the given file. If necessary, the file is opened, from an already open file, the next line is read. If the end-of-file is encountered the variable is set to "EOF", and the file is closed. The file is also closed if the "close" option is given.