i am having a program in java.which system.out some strings,i need to save each of them in a text file it is showing in a format ruo1 row2 row3 i want it in
u can use PrintWriter pw; pw.println(row+i) in above instead of hard coding newLine