public static String read(final String filename){
  try {
    return asString(new FileInputStream(new File(filename)),Charset.defaultCharset());
  }
 catch (  IOException e) {
    logger.warn("An error occurred while reading the file {}",filename,e);
    return null;
  }
}

public static String read ( final String filename ) { try { return asString ( new FileInputStream ( new File ( filename ) ) , Charset . defaultCharset ( ) ) ; } catch ( IOException e ) { logger . warn ( "An error occurred while reading the file {}" , filename , e ) ; return null ; } }
returns the content of the given file as a plain string .
