DataOutputStream out = new DataOutputStream(new FileOutputStream( "out.txt" ));
out.writeBytes("The accounts are:");
out.writeByte('\n');//////// 想实现在文本里重起一行
out.writeBytes("The accounts are:");
out.writeByte('\n');//////// 想实现在文本里重起一行
此外,输出文本,你最好使用Writer而不是直接用OutputStream。
\n == Unix/Linux