List of utility methods to do File to String with Limit
String | readFileAsString(File file, int size_limit, String charset) read File As String FileInputStream fis = new FileInputStream(file); try { return readInputStreamAsString(fis, size_limit, charset); } finally { fis.close(); |