Where does saveTable save?

Does anybody know where save table saves?

2 Likes

By default it saves at sketchPath():
Processing.GitHub.io/processing-javadocs/core/processing/core/PApplet.html#sketchPath--

1 Like

but there is a data path preferred for processing use,
https://processing.org/reference/loadTable_.html
https://processing.org/reference/saveTable_.html
besides there is some nice trick that processing even look
into sketch path AND data path for reading,
THIS does not work for writing, so lets ignore that feature and make some clean code:

String infile = "data/myCSV.csv";  // make sure there is a /data/ sub-directory with that file
String outfile = "data/myNewCSV.csv"; // this even could create that sub-directory if not exists


Table table = loadTable(infile,"header");
//... work on it
saveTable(table, oufile);

now a more general answer to your question

Where does saveTable save

would be:
to the specified path/filename ( if have write access )
but again, best is to use the sketchpath/data/ directory

1 Like