final String[] lines = filecontents.split("\n");
final String[] lines = filecontents.split(";\n");
    protected static void reverseFile(final String inputFilename, final String outputFilename)            throws IOException {        if ((new File(inputFilename)).exists()) {            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);        }    }