I plan to save some of my Arduino sensor data to a text file using the Processing language.
Ninety percent of the following code comes from this forum posting. Thank goodness for the internet, and for people like PhiLho and Cedric. I modified their code and ended up with this (to suit my own project):
This will append the sensor data of 10,20,30,40,50 to the end of mySensorData.txt file.
If I wanted to create a new text file instead, then I would call saveData in the following way:
saveData(myFileName, mySensorData, false);If you found this code useful, please support me here: