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 ( ) ; }
Save the worksheet as a csv file