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>

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy