ColdFusion Append File
In the previous lesson, we wrote a file to the server using the ColdFusion
<cffile> tag. The
<cffile> tag also allows you to append a file on the server.
To append a file, you simply use
action="append" (instead of
action="write"). The contents you specify in this tag are appended to the end of the existing file. If the file doesn't already exist, it is created.
Example of Appending a File
This example declares a variable, assigns the current date and time to it, then appends the result to a file.
Here's the full syntax of
For a more detailed explanation, see Adobe's documentation for