View Single Post
  #7   Spotlight this post!  
Unread 27-01-2014, 01:42
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: File IO without overwriting file

Yeah, that's code that I would very much expect to work.

I am opening the fileconnection using

Code:
FileConnection c = (FileConnection) Connector.open(PATH, Connector.READ_WRITE);
and I have tried
Code:
OutputStreamWriter writer = new OutputStreamWriter(c.openOutputStream(c.fileSize()));
but that triggers an IO exception.

Have you made that code work on the cRIO? I have similar code that works on a PC, but something about the cRIO seems to be causing a problem...
Reply With Quote