BufferedReader readline() method dosen't read "\n". Use apache FileUtils readFileToString method to avoid this issue.