Page 1 of 1

Read JSFile Contents?

PostPosted: Thu Feb 05, 2004 3:45 am
by JDW
Hi,

Is it correct that you can't currently (I'm using R2 2.0 RC2) read the contents of a JSFile returned from the showFileOpenDiaolg method od the File plugin?

(Ie: if I select a text file, can I read the contents into a method variable or field?)

If not, how can this be accomplished? Write my own plugin to return the file data?

Thanks.

PostPosted: Thu Feb 05, 2004 4:16 am
by JDW
Whoops, sorry to take up anyone's time!

I've just found the readFile and readTXTFile methods of the Application object which appear to do exactly what I'd like.

Cheers,

Joel