public static String readContent( File file ) throws IOException
    {
        Reader input = null;
        try
        {
            input = new FileReader( file );
            return readContent( input );
        }
        finally
        {
            closeQuietly( input );
        }
    }
public static String readContent ( File file ) throws IOException { Reader input = null ; try { input = new FileReader ( file ) ; return readContent ( input ) ; } finally { closeQuietly ( input ) ; } }
Returns the content of a file as a String.

@param file a {@link java.io.File} object.
@return a {@link java.lang.String} object.
@throws java.io.IOException if any.