question: private void save ( ) { try { FileUtils . write ( new File ( jarName + "-Scan.html" ) , text ) ; } catch ( IOException e ) { JOptionPane . showMessageDialog ( null , e . getMessage ( ) , "Error saving file!" , JOptionPane . ERROR_MESSAGE ) ; } }
target:  Saves the scan to the filesystem.