FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Tools
(Moderator: REAS)
   main Processing directory
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: main Processing directory  (Read 757 times)
jedierikb

WWW
main Processing directory
« on: Feb 22nd, 2004, 6:35am »

putting together an xml package for p5.
 
for saving serialized data, i want to do what saveStrings() does and create the files "in the main Processing directory (the same directory as the executable file)".
 
what is the java method/parameter to get this directory?
 
thanks.
 
fry

WWW
Re: main Processing directory
« Reply #1 on: Feb 23rd, 2004, 3:57pm »

any new File object will drop things into the main processing folder, since that's the current working directory when p5 is launched. i.e:
 
FileOutputStream fos = new FileOutputStream("thiswillbeinsidethep5folder.txt");
 
i'm gonna try and add some method for a sketch to get its own directory, but that'll be in the uber-release.
 
Pages: 1 

« Previous topic | Next topic »