public static void ensureFileExists(File file) throws IOException {
  if (!file.exists()) {
    file.createNewFile();
  }
}

public static void ensureFileExists ( File file ) throws IOException { if ( ! file . exists ( ) ) { file . createNewFile ( ) ; } }
ensures that the file exists
