src/neon/utils/GeneralUtils.java
/**
   * Reads text from a file.
   *
   * @param path the path of the file
   * @return the text in the file or null if the file does not exist
   */
Reads text from a file.
@param path the path of the file
@return the text in the file or null if the file does not exist
Reads text from a file . @param path the path of the file @return the text in the file or null if the file does not exist
public static String readText(String path) {
    Path pathObj = Paths.get(path);
    try {
      return Files.readString(pathObj);
    } catch (IOException ex) {
      ex.printStackTrace();
    }
    return null;
  }
public static String readText ( String path ) { Path pathObj = Paths . get ( path ) ; try { return Files . readString ( pathObj ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } return null ; }
Reads text from a file.
Reads text from a file .