code: public double[] readTS(String dataFileName, int loadLimit) throws SAXException, IOException {
  
      Path path = Paths.get(dataFileName);
      if (!(Files.exists(path))) {
        throw new SAXException("unable to load data - data source not found.");
      }
  
      BufferedReader reader = Files.newBufferedReader(path, DEFAULT_CHARSET);
  
      return readTS(reader, 0, loadLimit);
  
    }
docs: Read at least N elements from the one-column file.
  
  @param dataFileName the file name.
  @param loadLimit the load limit.
  @return the read data or empty array if nothing to load.
  @throws SAXException if error occurs.
  @throws IOException if error occurs.