摘要: writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("d:\\order.txt"))); writer.write(str); //如果不手动刷新缓存并且关闭流,很可能文件内容为空 writer.flush(); writer.close(); 阅读全文
posted @ 2016-11-22 21:11 akiradunn 阅读(2535) 评论(0) 推荐(0) 编辑