src/neon/utils/GeneralUtils.java
/**
   * Reads lines of text from a file.
   *
   * @param path the path of the file
   * @param charset the charset to be used to decode the data
   * @return a list of strings containing the text in the file or null if the file does not exist
   */
Reads lines of text from a file.
@param path the path of the file
@param charset the charset to be used to decode the data
@return a list of strings containing the text in the file or null if the file does not exist
Reads lines of text from a file . @param path the path of the file @param charset the charset to be used to decode the data @return a list of strings containing the text in the file or null if the file does not exist
public static List<String> readLines(String path, Charset charset) {
    Path pathObj = Paths.get(path);
    try {
      return Files.readAllLines(pathObj, charset);
    } catch (IOException ex) {
      ex.printStackTrace();
    }
    return null;
  }
public static List < String > readLines ( String path , Charset charset ) { Path pathObj = Paths . get ( path ) ; try { return Files . readAllLines ( pathObj , charset ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } return null ; }
Reads lines of text from a file.
Reads lines of text from a file .