Log in

View Full Version : Flight Recorder Help


Kamal Sadek
20-01-2013, 20:07
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?

vinnie
20-01-2013, 20:27
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.

Joe Ross
20-01-2013, 20:38
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.