I have got data coming in from serial output, brainwaves, through an arduino uno, being graphed in proccessing. I really need to know how to write the incoming data to a .txt file for use in matlab. the data is being printed in the proccessing window in the form