|
Author |
Topic: opening local files (Read 719 times) |
|
5cameron
|
opening local files
« on: Mar 13th, 2005, 10:38am » |
|
Hi all, Is there a way to open local files in their default application from a Processing program? How about loading in JPG or GIF images into P5 dynamically from a local file path? Thanks a million! C
|
|
|
|
Aiko
|
Re: opening local files
« Reply #1 on: Mar 17th, 2005, 12:55pm » |
|
Or.... is it possible to open an extern text file and use the data of that file?
|
|
|
|
fry
|
Re: opening local files
« Reply #2 on: Mar 17th, 2005, 11:27pm » |
|
on Mar 13th, 2005, 10:38am, 5cameron wrote:Is there a way to open local files in their default application from a Processing program How about loading in JPG or GIF images into P5 dynamically from a local file path |
| it's gonna be specific to your platform--it works differently on windows, macosx, and linux. searching google for info on Runtime.exec() to open files will do it. there are also some java utility classes out there that handle it in a cross-platform way to hide the nastiness as well.
|
|
|
|
Aiko
|
Re: opening local files
« Reply #4 on: Mar 21st, 2005, 10:43pm » |
|
on Mar 17th, 2005, 11:28pm, fry wrote: Thank you Fry!
|
|
|
|
|