|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
file i/o in java
Does anyone have example code for how to open and write to a text file on the cRIO? We would like to write out information while the robot for debugging purposes, then ftp the file to a laptop for viewing. Any help is appreciated.
|
|
#2
|
||||
|
||||
|
Re: file i/o in java
if i remember right, they removed that feature from java, i suggest writing a class in c++ then use JNA to call it
|
|
#3
|
|||
|
|||
|
Re: file i/o in java
Quote:
- Ron Team #2607 controls mentor |
|
#4
|
||||
|
||||
|
Re: file i/o in java
I'll second Ron's approach.
As an FYI, once you have an OutputStream to the file, you can wrap it with a PrintStream and use the typical print methods on the file. Quote:
Last edited by derekwhite : 07-04-2010 at 23:23. Reason: typo |
|
#5
|
|||
|
|||
|
Re: file i/o in java
See
http://code.google.com/p/grtframewor...GRTFileIO.java You can use that file verbatim or copy it and use its innards in your code. |
|
#6
|
||||
|
||||
|
Re: file i/o in java
THanks, is there anyway to append to a file?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| **FIRST EMAIL**/Java and Orbit Balls *****JAVA DISCUSSION*** | Pjohn1959 | Programming | 37 | 31-08-2009 15:55 |
| How to use the data obtain in one C file to another C file? | tommy_chai | Programming | 8 | 11-01-2008 02:17 |
| "Error.MCP" file after HEX file trans | iwdu15 | Programming | 1 | 24-01-2007 20:05 |
| Help! making an inventor file into an autodesk file | kjhobin | Inventor | 5 | 19-03-2006 23:04 |
| How do we convert a modified user routines file into a valid .HEX file | HuskieRobotics | Programming | 13 | 28-02-2004 12:12 |