fileWrite

If you specify a file path, writes the entire content to the specified on-disk or in-memory file. If you specify a file object, writes text or binary data to the file object.

fileWrite(filePath, data [, charset]) → returns void

Argument Reference for the fileWrite function

filePath

Required: Yes
No Help Available

data

Required: Yes
No Help Available

charset

Required: No
No Help Available

Examples sample code invoking the fileWrite function


Script Syntax

<cfscript> 
 fileWrite("mail_list", "#companymail#"); 
 mlist = fileRead("mail_list"); 
 </cfscript>  

Fork me on GitHub