Appending to a file

You can append text to a file using the append function.

Method summary

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

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

For instance,

<cfset cfclient.file.write('first.txt','Hello there!!!')>
<cfset cfclient.file.append('first.txt','Adding more text.')>


Examples

See Using the File APIs

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy