Read JSFile Contents?

Questions and answers on developing, deploying and using plugins and JavaBeans

Read JSFile Contents?

Postby JDW » Thu Feb 05, 2004 3:45 am

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.
JDW
 
Posts: 71
Joined: Sun Feb 01, 2004 1:50 am

Postby JDW » Thu Feb 05, 2004 4:16 am

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
JDW
 
Posts: 71
Joined: Sun Feb 01, 2004 1:50 am


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 13 guests