Re: file read and processing pretty slow. ideas?
"Hannes Wallnoefer" <[email protected]> Mon, 16 Jul 2007 20:18:57 +0200
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
2007/7/16, Joshua Paine <[email protected]>: > Hannes Wallnoefer wrote: > > You should be able > > to test the old, native code by just dropping the helma. prefix, using > > File(...) instead of helma.File(...). > > If I do that, I get: > TypeError: Cannot find function open. (C:\...\anagrams.hac#3) You have to invoke File as constructor, using the "new" keyword. The following will work: new File(..).open(); hannes > 3: (f = File('c:/temp/wordlist.txt')).open(); > > I get equivalent errors for all the expected methods I've tried, > including getPath(). Same thing if I split it into two lines the way > normal people do. > > Same thing if I access File as global.File. > > helma.File works. > > -Joshua > _______________________________________________ > Helma-user mailing list > [email protected] > http://helma.org/mailman/listinfo/helma-user >