fileWriteLine

Appends content to an existing file

fileWriteLine(fileobj, content) → returns void

fileWriteLine Argument Reference

fileobj any
Required

The file where you want to add your content

content string
Required

Examples sample code invoking the fileWriteLine function

<cfscript> 
  myfile = fileOpen("c:	emp	est1.txt", "write"); 
     fileWriteLine(myfile,"This line is new."); 
     fileClose(myfile);  
 </cfscript>  

Fork me on GitHub