java 创建并写入文件
2015-08-21 09:39 【戈多】 阅读(215) 评论(0) 编辑 收藏 举报StringBuffer sb = new StringBuffer(); OutputStreamWriter out1; out1 = new OutputStreamWriter(new FileOutputStream("E:\\test.txt"),"utf-8"); out1.write(sb.toString()); out1.flush(); out1.close();