public static String fileToString(final Path file) {
        try {
            return Files.readString(file, DEFAULT_CHARSET);
        } catch (IOException ioEx) {
            // Wrap it
            throw new UncheckedIOException(ioEx);
        }
    }
Read file into a String, wrapping any {@link IOException} with an
{@link UncheckedIOException}.

@return The contents of the file as a string using {@link StreamUtil#DEFAULT_CHARSET}.
stroom-util/src/main/java/stroom/util/io/StreamUtil.java