decorative banner

Previous | Next               Table Of Contents > 5 Reading and writing local files > 5.2 Reading lines

5.2 Reading lines


The filereadline command can be used to read lines from a file that has been opened with the fileopen command in read mode. A line of text is read from the file and placed in the user specified variable. The fileresult predefined status flag is set to the predefined constant success if the command completed successfully.

The syntax is

filereadline <user specified variable>;

Some examples are

fileopen read, "eg_12.txt";
filereadline ~one_line; #read a line from the file

filereadline ~one_line; #read the next line in the file


Previous | Next