输出流 写文件 文本 换行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();
浙公网安备 33010602011771号