public static String getText(File path) throws IOException {
    return getText(path.toPath());
  }
Returns the text read from the given file as a String.
spock-core/src/main/java/org/spockframework/util/IoUtil.java