print one file, given an open BufferedReader
try {
String inputLine;
while ((inputLine = is.readLine()) != null) {
for (int i=0; i<inputLine.length(); i++){
char c = inputLine.charAt(i);
switch(c) {
case '\t": System.out.print("\\t"); break;
case '\r": System.out.print("\\r"); break;
case '\n": System.out.print("\\n"); break;
default: System.out.print(c); break;
}
}
System.out.println();
}
is.close();
} catch (IOException e) {
System.out.println("IOException: " + e);
}