标签:stream dwr blog file put log write java writer
writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("d:\\order.txt"))); writer.write(str); //如果不手动刷新缓存并且关闭流,很可能文件内容为空 writer.flush(); writer.close();
标签:stream dwr blog file put log write java writer
原文地址:http://www.cnblogs.com/akiradunn/p/6091176.html