Writes to a text file. This function cannot be used unless you log in to the server.
If you specify [ansi] at the beginning of the file name specified in the fileName argument, it will be saved in ANSI format. If you omit it, it will be saved in utf8 (with BOM).