java中用StringBuffer写文件换行

System.getProperty("line.separator")
原文地址:https://www.cnblogs.com/zt528/p/5383105.html