[Helma-user] file read and processing pretty slow. ideas?

Hannes Wallnoefer hannes at helma.at
Mon Jul 16 20:18:57 CEST 2007


2007/7/16, Joshua Paine <joshua at papercrown.org>:
> 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
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>


More information about the Helma-user mailing list