Your problem is the while condition. You shouldn't use ready there.
By the way, please, replace your String with StringBuffer your code will run much faster.
Try with this code (untested but should work)
StringBuffer sb = new StringBuffer();
try {
fileReader = new BufferedReader(new FileReader(args[2]));
int i;
while ((i=fileReader.read())!=-1) {
sb.append(s);
}
System.out.println(sb.toString());
} catch (IOException e) {
e.printStackTrace();
}
Here a version using readLine (if you care about newlines you can still append a \n)
StringBuffer sb = new StringBuffer();
try {
fileReader = new BufferedReader(new FileReader(args[2]));
String s;
while ((s=fileReader.readLine())!=null) {
sb.append(s);
//sb.append('\n'); //if you want the newline
}
System.out.println(sb.toString());
} catch (IOException e) {
e.printStackTrace();
}