public void saveCSV(File file) throws IOException {
  FileWriter writer=null;
  try {
    writer=new FileWriter(file);
    writer.write(toCSV());
  }
  finally {
    if (writer != null) {
      writer.close();
    }
  }
}

public void saveCSV ( File file ) throws IOException { FileWriter writer = null ; try { writer = new FileWriter ( file ) ; writer . write ( toCSV ( ) ) ; } finally { if ( writer != null ) { writer . close ( ) ; } } }
saves the contests of this accumulator to a csv file .
