Whatever message this page gives is out now! Go check it out!
FileIsEOF(fileObj) |
| Parameter | Description |
fileobj | The file object. |
<cfscript>
theDir=GetDirectoryFromPath(GetCurrentTemplatePath())
theFolder=theDir&"Sample files/Test.txt"
myfile = FileOpen(theFolder, "read");
while(!FileIsEOF(myfile))
{
x = FileReadLine(myfile);
WriteOutput("#x# ");
}
FileClose(myfile);
</cfscript>