With this function you can write a new line to an opened text file. In this way you can skip lines or write information on a line by line basis (see example code below).
|fileid||The id of the file to edit.|
var file = file_text_open_write(working_directory +
for (var i = 0; i < 10; ++i;)
The above code opens a file for writing and then loops through two arrays, writing each array value to a new line of the file. The file is then closed when the loop has finished.