An enhancement in ColdFusion 10 to cffile makes it very easy to write or append content to a file on physical disk, Amazon S3 or RAM disk.
In the following example a new file will be created:
<cffile action="append" file="#expandPath("test.txt")#">
Here is my file content
With several lines
That go on
In this example the content is appended to the file:
<cffile action="append" file="ram://test.txt">
And now
appending a couple lines