public static String getText(Path path) throws IOException {
    return getText(path, StandardCharsets.UTF_8);
  }
Returns the text read from the given reader as a String.
Closes the given reader upon return.
spock-core/src/main/java/org/spockframework/util/IoUtil.java