View Single Post
  #1   Spotlight this post!  
Unread 08-02-2013, 16:47
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Problems Accessing Robot-Side File

Using the Connector paradigm to open a FileConnection and trying to read from it, I'm encountering errors. These seem to stem from the fact that a call to available() returns 0 bytes.

Does anyone have a solution? The file I am trying to open is on the root of the cRIO's file system, so I could see file permissions being an issue (but I get no Exception to this effect, nor can I really justify this in my mind). I would try to relocate the file but have no idea what the default working directory of any code run on the robot is (nor do I really know how j2me handles things like this).
Reply With Quote