向文件中写入Hashmap对象,且可以追加写的方法~~试了很多类了,最后得到的方法

PrintWriter ps = new PrintWriter(new FileOutputStream("1.txt",true));
ps.print(map);
ps.close();

posted @ 2015-04-18 14:29  danscarlett  阅读(237)  评论(0编辑  收藏  举报