info.mailtraq.com > Management > Script Functions A-Z > Write() Write()Writes a string to a file which is open (via AppendFile() or CreateFile(),) for writing. If the written string contains carriage returns this will result in multiple lines in the target file. Note that such lines will require multiple Read() statements when retrieving them.
Write( handle , string )
- handle
- The file identifier obtained from a call to AppendFile() or CreateFile()
- string
- A string of arbitrary length to be written to the file
myfile := CreateFile("output.txt");
Write(myfile, "This is line one\nThis is line two");
CloseFile(myfile) |