Whatever message this page gives is out now! Go check it out!
FileClose(fileObj) |
Parameter | Description |
fileobj | The file to close. |
<cfscript>
myfile = FileOpen("c:\my\custom\location\test1.txt", "read");
while(NOT FileIsEOF(myfile))
{
x = FileReadLine(myfile);
WriteOutput("#x# <br>");
}
</cfscript>
<!--- Additional code goes here. --->
<cfif #myfile.status# IS "open">
<cfoutput>The file #myfile.filepath# is #myfile.status#</cfoutput> <br>
<cfscript>
FileClose(myfile);
</cfscript>
</cfif>