We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › load a file out of the data directory ...
Page Index Toggle Pages: 1
load a file out of the data directory ... (Read 225 times)
load a file out of the data directory ...
Jan 12th, 2009, 10:40am
 
Hello,

I"d like to be able to load files out of the data directory (not for an applet).
Is it possible to read directory's names and files's name ; to make an "open file" command ... ?

... and this only with processing (not with java code)

maybe someone made an application which could be an example ?

thanks

P.S. and sorry for my poor english Smiley
Re: load a file out of the data directory ...
Reply #1 - Jan 12th, 2009, 11:00am
 
Yes, AFAIK, all commands taking a file name to get the file from the data directory also accepts an absolute file path.

Open file command: see selectInput(), I think.

"(not with java code) "
Why Processing is 95% Java code anyway, in lot of cases you can use regular Java code (outside of the ref) without problem.
Page Index Toggle Pages: 1