ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org myFile = expandPath( "somefile.txt" );
fileObj = fileRead( myFile );
writeOutput(fileObj);
// OR
myFile = expandPath( "somefile.txt" );
fileObj = fileOpen( myFile, "read" );
fileClose( fileObj ); // Once a file is closed you cannot access the object1myFile = expandPath( "somefile.txt" ); 2fileObj = fileRead( myFile ); 3writeOutput(fileObj); 4// OR 5myFile = expandPath( "somefile.txt" ); 6fileObj = fileOpen( myFile, "read" ); 7fileClose( fileObj ); // Once a file is closed you cannot access the object
This may fall into the category of "No Duh", but you can also use these functions in tag based CF as well. I don't like how verbose cffile is - so if I want to simply read in a file, I may do: