public static String getText(File f) throws IOException {
		if (f.length() > MAX_FILE_SIZE) {
			throw new IOException("Text file too large to read: " + f + ", length: " + f.length());
		}
		try (InputStream is = new FileInputStream(f)) {
			return getText(is);
		}
	}
Returns all of the text in the given {@link File}.
<p>
See {@link #getText(InputStream)}

@param f the file to read
@return the content as a String
@throws IOException if there are any issues reading the file or file is too large.
Ghidra/Framework/Utility/src/main/java/utilities/util/FileUtilities.java