decorative banner

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

5.3 Writing lines

The filewriteline command can be used to write lines from a file that has been opened with the fileopen command in write or append mode. The line specified in the text line string is written to the file. The fileresult predefined status flag is set to the predefined constant success if the command completed successfully.

The syntax is

filewriteline <text line string>;

Some examples are

fileopen append, "out_log.txt";
filewriteline "File 1 was uploaded"; #write a line to the file

filewriteline "File 2 was uploaded"; #write the next line to the file

Previous | Next