输出流 写文件 文本 换行nextLine

 
FileOutputStream   fos   =   new   FileOutputStream( "c:\test.txt "); 
String   nextLine   =   System.getProperty( "line.separator "); 
String   testStr   =   "abcd "+nextLine+ "efgh "+nextLine+ "igkl "
byte[]   c   =   testStr.getBytes(); 
fos.write(c); 
fos.close();
原文地址:https://www.cnblogs.com/mohe/p/3317783.html