Can't find Java IO File when compiling
in
Integration and Hardware
•
2 years ago
Hi guys,
this is probably just a stupid question, but I can't seem to get it right.
When compiling my Processing sketch it adds the data folder to the exported .app or .exe, this works fine when I use methods such as loadStrings, loadImage, loadFont, but when I use new File("data/filename.xml") it doesn't find the file in the compiled version.
Is there a way to use a relative path to the files when using new File?
Thanks
1