Create .csv file with data in a column (table)

Hi fsdonato,

Welcome to the forum.

Your function RECORD() creates each time a new table, so what ever was recorded on previous call is thrown away.

You don’t need a table object to store csv. CSV is a plain text file where you use a separator (usually comma but not always) to separate values on the row. In your case just opening a text file and adding new values to it might be enough.

You can do that with PrintWriter. Processing documentation has a nice example how to use it createWriter() / Reference / Processing.org. In your case closing the file is different, but commands and logic is same.

2 Likes