code: public static boolean createFile(File targetFile) {
          if (targetFile.exists()) {
              if (targetFile.isFile()) return true;
              delFileOrFolder(targetFile);
          }
          try {
              return targetFile.createNewFile();
          } catch (IOException e) {
              return false;
          }
      }
docs: Create a file, If the file exists is not created.
  
  @param targetFile file.
  
  @return True: success, or false: failure.