private BufferedWriter createIt(File file) throws IOException {
  if (!file.exists()) {
    file.createNewFile();
  }
  return new BufferedWriter(new FileWriter(file));
}

private BufferedWriter createIt ( File file ) throws IOException { if ( ! file . exists ( ) ) { file . createNewFile ( ) ; } return new BufferedWriter ( new FileWriter ( file ) ) ; }
create the file and return a bufferedwriter to write in
