| Contents > Developing ColdFusion MX Applications > Managing Files on the Server > Using cffile > Reading, writing, and appending to a text file Appending a text file |
|
|
|
|
||
You can use cffile to append additional text to the end of a text file; for example, when you create log files.
action attribute from write to append so that the file appears as follows:<html> <head> <title>Append a Text File</title> </head> <body> <cffile action="append" file="C:\inetpub\wwwroot\mine\message.txt" output="Appended By: #Form.Name#"> </body> </html>
The appended information displays at the end of the text file.
|
|
||
| Contents > Developing ColdFusion MX Applications > Managing Files on the Server > Using cffile > Reading, writing, and appending to a text file Appending a text file |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.