protected static void reverseFile(final String inputFilename, final String outputFilename) throws IOException { final String filecontents = FileUtils.readFile(inputFilename);
protected static void reverseFile(final String inputFilename, final String outputFilename) throws IOException { String filecontents = null; try { filecontents = FileUtils.readFile(inputFilename); } catch (IOException e) { return; }
    protected static void reverseFile(final String inputFilename, final String outputFilename) throws IOException {        final String filecontents = FileUtils.readFile(inputFilename);        final String[] lines = filecontents.split("\n");        final FileWriter fileWriter = new FileWriter(outputFilename, false);        for (int i = lines.length; i > 0; i--) {            fileWriter.write(lines[i - 1]);            fileWriter.write("\n");        }        fileWriter.close();        if (logger.isDebugEnabled()) logger.debug("Wrote " + lines.length + " lines to " + outputFilename);    }