code: public static String getText(File file, String charset) throws IOException {
          return IOGroovyMethods.getText(newReader(file, charset));
      }
docs: Read the content of the File using the specified encoding and return it
  as a String.
  
  @param file    the file whose content we want to read
  @param charset the charset used to read the content of the file
  @return a String containing the content of the file
  @throws IOException if an IOException occurs.
  @since 1.0