I'd take a spoiler for you any day.
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2015, 16:40
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
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!
  #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.
  #3   Spotlight this post!  
Unread 21-01-2015, 19:50
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Java File I/O

File Storage section: http://wpilib.screenstepslive.com/s/...e-2014-to-2015
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi