[Jslib] Problem with File.open('w')

Pete Collins pete at mozdevgroup.com
Mon Aug 2 10:42:29 EDT 2004


Sudhakar Chandra wrote:

> Turns out that the problem was what File.open() returns.  It returns 0 
> upon success and my if(localeFile.open('w')) was testing to false.
>
Yes, actually this is something I changed a few weeks ago. I think 
returning 0 (JS_LIB_OK) is was the correct way to show success.

--pete

-- 
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions 




More information about the Jslib mailing list