fileWriteLine

Appends content to an existing file

fileWriteLine(file, data) → returns void

Argument Reference

file any
Required

The file where you want to add your content

data string
Required

Content to add to the file

Examples
Sample code invoking the fileWriteLine function

myfile = fileOpen("c:\temp\test1.txt", "write"); 
fileWriteLine(myfile,"This line is new."); 
fileClose(myfile);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub