code: public static String slurpFile(File file, String encoding) throws IOException {
      return IOUtils.slurpReader(IOUtils.encodedInputStreamReader(
              new FileInputStream(file), encoding));
    }
docs: Returns all the text in the given File.
  
  @param file The file to read from
  @param encoding The character encoding to assume.  This may be null, and
  the platform default character encoding is used.