Thread: Java File I/O
View Single Post
  #2   Spotlight this post!  
Unread 21-01-2015, 19:00
blu28 blu28 is offline
Registered User
FRC #0151
 
Join Date: Aug 2008
Location: Nashua, NH
Posts: 10
blu28 is an unknown quantity at this point
Re: Java File I/O

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.