摘要: 在java的IO体系中,写文件通常会用到下面语句BufferedWriter bw=new BufferedWriter(new FileWriter("sql语句.txt"));用到这个的时候一定不能忘了他的伴侣代码。。bw.close();或者bw.flush();实际上,FileWriter在... 阅读全文
posted @ 2015-08-11 23:02 子健儿 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: String path="D:\\新建文件夹\\2.png";File file=new File(path);System.out.println(file.exists()); String path1="D:/新建文件夹/2.png";File file1=new File(path);Sy... 阅读全文
posted @ 2015-08-11 22:27 子健儿 阅读(1566) 评论(0) 推荐(0) 编辑