code: public static String readFileToString(File file) throws IOException {
  
  		Assert.isTrue(file.exists(), "File '" + file + "' does not exist");
  		Assert.isFalse(file.isDirectory(), "File '" + file + "' is a directory");
  		Assert.isTrue(file.canRead(), "File '" + file + "' cannot be read");
  
  		FileInputStream stream = new FileInputStream(file);
  		return getString(stream);
  	}
docs: Reads file into String
  
  @param file to be read
  @return file content
  @throws IOException in case file does't exist or is not a file