not succeed write data in text file using processing

Hi all,

I created this function:

void serialEvent(Serial myserial) {
  String result = myserial.readString();
  String[] resultArray = split(result, ' ');  
  saveStrings( "output.txt", resultArray );

print(resultArray);
 }

If arduino transmits "1234" I receive that value in console processing, but when I want to write the same string in output.txt file it apeears just "4". Any idea why happens this?

Tagged:

Answers

This discussion has been closed.