code: public void saveCSV(String fileName) throws Exception {
  		File f = new File(fileName);
  		File parentFile = f.getParentFile();
  		if (!parentFile.isDirectory()) {
  			parentFile.mkdirs();
  		}
  		FileOutputStream file = new FileOutputStream(fileName);
  		BufferedOutputStream bs = new BufferedOutputStream(file);
  		save(bs, ',', false);
  		bs.close();
  		file.close();
  	}
docs: Save the worksheet as a csv file
  
  @param fileName
  @throws Exception