Try this:
If you need to print the output line by line you use this...



while((s=brk.readLine())!=null){
t1.append(s+"\n");
}