![]() |
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.
|
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
|
Re: file i/o in java
Quote:
- Ron Team #2607 controls mentor |
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:
|
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. |
Re: file i/o in java
THanks, is there anyway to append to a file?
|
| All times are GMT -5. The time now is 09:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi