http://imagej.273.s1.nabble.com/Results-Table-CSV-file-tab-to-comma-delimited-tp5018049p5018067.html
> On Feb 7, 2017, at 2:05 PM, Gabriel Landini <
[hidden email]> wrote:
>
> Hi
> We have a plugin that takes a Results table and saves it.
>
> <snip>
>
> The code we are using to do this is:
> ResultsTable rt= ResultsTable.getResultsTable();
> int[] assignments = new int[rt.size()];
> String IJdir = IJ.getDirectory("imagej");
> rt.saveAs(IJdir+"datatobeclustered3.cvs");
> CSVLoader loader = new CSVLoader();
> loader.setSource(new File(IJdir+"datatobeclustered3.cvs"));
>
> Does anbody have any idea of what might be going on?
>
> Is there any way to save the Results table as comma-delimited instead of tab-
> delimited?
The saveAs() and save() methods of the ResultsTable class save in CSV (comma-separated values) format if the name ends with ".csv”. Your code uses “.cvs” so the file will be saved in tab-dilimited format.