Java File I/O

I wrote myself a configuration wizard which works by writing a configuration file and saving it on the filesystem. The program works perfectly on the desktop so I do not see any reason against this working. How do I perform file I/O with Java on the RoboRIO? I am guessing that what is happening is that there is some sort of a file permissions error.
If this is the case, what is a good place to place my configuration?
The code is here!
Thanks in advance! Feel free to use this configuration parser in your own program! :slight_smile:

I am not at the RoboRio, so I can’t test this, but my understanding is that the code that is downloaded as Java onto the RoboRio runs as a specific user which is not the administrator. Since the RoboRio is running Linux most of the file system is going to owned by the root user. So, you need to use a file path for the configuration file that is accessible to a non-root user. I might suggest trying out “/var/tmp/configfile” as a first attempt.

File Storage section: http://wpilib.screenstepslive.com/s/4485/m/13809/l/292213-c-java-porting-guide-2014-to-2015