Go to Post When we got it tuned to the point where we were (reasonably) confident it wouldn't slam into Dave's ankle, we quit for the evening. - Kevin Watson [more]
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 20-01-2013, 20:07
Kamal Sadek Kamal Sadek is offline
Registered User
FRC #0295 (Renevatio)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Sacramento
Posts: 1
Kamal Sadek is an unknown quantity at this point
Flight Recorder Help

While working with the Java interface for the robot, we found that many of the files were omitted (We were unable to import them). One of these such files is java.io.File, which contains all the information needed to work with files. Is there anyway to work around this?
  #2   Spotlight this post!  
Unread 20-01-2013, 20:27
vinnie's Avatar
vinnie vinnie is offline
Registered User
FRC #3309 (Friarbots)
Team Role: College Student
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Los Angeles / Anaheim
Posts: 107
vinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond repute
Re: Flight Recorder Help

Quote:
Originally Posted by Kamal Sadek View Post
While working with the Java interface for the robot, we found that many of the files were omitted (We were unable to import them). One of these such files is java.io.File, which contains all the information needed to work with files. Is there anyway to work around this?
I'm not near a computer right now so I can't give you exact code but you'll want to use the FileConnection of Java ME. If you Google "j2me file connection" you should be able to find examples.
__________________
Student (3309) 2010-2013
Mentor (597) 2014
Mentor (3309) 2013-Present
  #3   Spotlight this post!  
Unread 20-01-2013, 20:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Flight Recorder Help

The version of Java on the robot is Java ME, rather then Java SE that you are used to using on a computer. Java ME is based on Java SE version 1.3, so many new features are not available. Looking specifically for Java ME examples may be helpful.

For examples of reading and writing files, you can look at the Preferences class.
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 02:15.

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