code: public boolean loadDictionary(String corpus, int termIndex, int countIndex) {
      File file = new File(corpus);
      if (!file.exists()) {
        return false;
      }
  
      BufferedReader br = null;
      try {
        br = Files.newBufferedReader(Paths.get(corpus), StandardCharsets.UTF_8);
      } catch (IOException ex) {
        System.out.println(ex.getMessage());
      }
      if (br == null) {
        return false;
      }
      return loadDictionary(br, termIndex, countIndex);
    }
docs: / <returns>True if file loaded, or false if file not found.</returns>