public static void createWriter(String fileName){
  try {
    createWriter(new FileOutputStream(fileName));
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
}

public static void createWriter ( String fileName ) { try { createWriter ( new FileOutputStream ( fileName ) ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } }
create a buffered writer to write to a utf - 8 text file .
