Paul Hastings wrote:
>><cfscript>
>>function GetFileLength(filename){
>>file = createObject('java', 'java.io.File');
>>file.init(filename);
>>return file.length();
>>}
>></cfscript>
> 
> 
> i think file is an overloaded method which will cause mx to barf (did you
> try that code?). you might need to write a wrapper class.

I did now test it and it works. Just cast the filename to the type 
string, and all is well :) (using JavaCast)

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
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to