jodd-core/src/main/java/jodd/io/FileUtil.java
public static String readString(final File file, final String encoding) throws IOException {
		checkExists(file);
		checkIsFile(file);
		InputStream in = streamOf(file, encoding);
		try {
			return StreamUtil.copy(in, encoding).toString();
		} finally {
			StreamUtil.close(in);
		}
	}
public static String readString(final File file, final String encoding) throws IOException {
		checkExists(file);
		checkIsFile(file);
		InputStream in = streamOf(file, encoding);
		try {
			return StreamUtil.copy(in, encoding).toString();
		} finally {
			StreamUtil.close(in);
		}
	}
Reads {@link File} content as {@link String} encoded in provided encoding.
For UTF encoded files, detects optional BOM characters.

@param file     {@link File} to read.
@param encoding Encoding to use.
@return String representing {@link File} content.
@throws IOException if copy to {@link InputStream} errors.
@see #streamOf(File, String)
@see StreamUtil#copy(InputStream, String)