BufferedWriter out = new BufferedWriter(new FileWriter("F:\table1table1.txt"));
String huanhang = " "; String s = str+huanhang+huanhang; out.write(s);
这样实现了写入文本的换行