<< back to sysax.com Product page

9.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.

Exhibit 9.7. Syntax of command for writing lines

filewriteline <text line string>;

Exhibit 9.8. Examples for using the command for writing lines

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