Subj : Ouch! file object - part2 To : netscape.public.mozilla.jseng From : Taro Kato Date : Fri Mar 26 2004 05:02 pm After specifying the wrong file name and creating File Object, if "readAll" is called, JSconsole.exe will have died. Please modify remarked below. in #define JSFILE_CHECK_WRITE -- js_FileOpen(cx, obj, file, "write,append,create"); \ ++ if (!js_FileOpen(cx, obj, file, "write,append,create")) goto out; \ in #define JSFILE_CHECK_READ -- js_FileOpen(cx, obj, file, "read"); \ ++ if (!js_FileOpen(cx, obj, file, "read")) goto out; \ ----- Since I cannot write English, I am using the language translation machine. Sorry if Words of me is unsuitable. ----- Taro Kato @ Tokyo Japan .