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);
}

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 ) ; }
read at least n elements from the one - column file .
