Sam Farmer

Growing up I never imagined I would play bass guitar for the Dave Matthews Band. And indeed it never happened.

10 Little Ones: Write and Append Enhancements for cffile (#3)

March 15, 2012

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

No Comments

Some comments have been lost over the years due to moving hosts.


More blog entries that I have written.

Code coloring by PRISM.