Tony Weeg wrote:
> yeah, well the way i look at it, 90% of the time
> im going to have to populate a file with data. how that
> data might come to me, in most cases i think, as part of-or
> fully contained in a variable, so a len() function should
> work most of the time...wouldnt you say.  but yeah, some
> cool, ReadCharInFile() function would rock.

should be something like:

<cfscript>
function GetFileLength(filename){
        file = createObject('java', 'java.io.File');
        file.init(filename);
        return file.length();
}
</cfscript>

Very simular functions can be made for CanRead, CanWrite, delete, 
exists,isDirectory, isFile, lastModified, renameTo, setLastModified, 
setReadOnly.

Maybe I'm up to it tonight. If I am, I'll sumbit them to the cflib.

Jesse



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to