10 Little Ones: Write and Append Enhancements for cffile (#3)
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:
1<cffile action="append" file="#expandPath("test.txt")#">
2Here is my file content
3With several lines
4That go on
5</cffile>
2Here is my file content
3With several lines
4That go on
5</cffile>
In this example the content is appended to the file:
1<cffile action="append" file="ram://test.txt">
2And now
3appending a couple lines
4</cffile>
2And now
3appending a couple lines
4</cffile>

There are no comments for this entry.
Add Comment Subscribe to Comments