User Guide Cancel

FileWriteLine

 

Description

Appends the specified text to the file object.

Category

System functions

Function syntax

FileWriteLine(fileobj, text)

See also

FileCopyFileDeleteFileExistsFileMoveFileWritecffile

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>

 

Get help faster and easier

New user?