I am sorry to report what seems to be an incredible problem with the saveTable() method.
void setup(){
Table t = createTable();
t.addColumn("x");
t.addColumn("y");
TableRow newRow = t.addRow();
newRow.setString("x", "a");
newRow.setString("y", "b");
saveTable(t,"data/data.csv", "csv");
}
void draw(){}
Gives a file that looks like this:
$ cat data.csv
x,y
a,b
x,y
a,b
$
There is a workaround, though! Do not specify the file type, let processing guess by the extension!...
saveTable(t,"data/data.csv");
produces:
I am sorry to report what seems to be an incredible problem with the saveTable() method.
Gives a file that looks like this:
There is a workaround, though! Do not specify the file type, let processing guess by the extension!...
saveTable(t,"data/data.csv");produces: