Whatever message this page gives is out now! Go check it out!

FileWriteLine

Last update:
May 18, 2026

Description

Appends the specified text to the file object.

Category

Function syntax

FileWriteLine(fileobj, text)

See also

History

ColdFusion 8: Added this function.

Parameters

Parameter
Description
text
Content to add to the file object.
fileobj
The file object to which to write the line.

Example

<h3>FileWriteLine Example</h3> 
 

<cfscript> 
 myfile = FileOpen("c:\temp\test1.txt", "write"); 
 FileWriteLine(myfile,"This line is new."); 
 FileClose(myfile); 

</cfscript>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page