cfclient.file.write

Writing to a file

You can write text to a file using the write function. This function creates a file if a given file name does not exist.  See the following example:

<cfset cfclient.file.write(“myNewFile.txt”, “Hello World!!!”)>

Method summary

write(name, data) - write data to a given file

  • returns - None
  • params
    • name – Absolute or relative path of the file name (including file name)
    • data - data to be written to the file

Get help faster and easier

New user?