public static String fileToString(final Path file, final Charset charset) {
        try {
            final byte[] bytes = Files.readAllBytes(file);
            return new String(bytes, charset);
        } catch (final IOException ioEx) {
            // Wrap it
            throw new RuntimeException(ioEx);
        }
    }
Reads a file and returns it as a string.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/StreamUtil.java