FileOutputStream如何在写入时换行

			FileOutputStream fileOutputStream = new FileOutputStream("D:\\MyJava\\reviewSsm\\CalculatorProxy\\src\\main\\resources\\log.txt",true);
            fileOutputStream.write(bytes);
            //要从System中获取换行的字符串
            String huanhang = System.getProperty("line.separator");
            fileOutputStream.write(huanhang.getBytes());

你可能感兴趣的:(FileOutputStream如何在写入时换行)