|fileid||The id of the file to close.|
Once you have finished working with a given file (whether
reading from it or writing to it), you must close the file again,
or else you risk losing the information contained within. This also
prevents memory leaks and makes sure that you never go over the
file limit by having more than 32 files open.
file = file_text_open_write(working_directory +
The above code opens a file for writing then loops through the lines of text already written to the file until it reaches the end. At this point it writes a string and then closes the file again.