|
Author |
Topic: main Processing directory (Read 757 times) |
|
jedierikb
|
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
|
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.
|
|
|
|
|