code: public static String slurpFileNoExceptions(String filename) {
      try {
        return slurpFile(filename);
      } catch (Exception e) {
        e.printStackTrace();
        return null;
      }
    }
docs: Returns all the text in the given File.
  
  @return The text in the file. May be an empty string if the file is empty.
  If the file cannot be read (non-existent, etc.), then and only then
  the method returns <code>null</code>.