菜鸟问题
用java实现查询D:study\test.txt文件是否存在,有什么函数实现啊?
用java实现查询D:study\test.txt文件是否存在,有什么函数实现啊?
解决方案 »
- Hibernate运行时出现错误Column 'clazz_' not found
- 会JSF Richfaces框架的朋友请进来瞧瞧
- hibernate和jdbc问题
- 在jsp页面中如何把上传的一寸照片在当前页面展现出来?
- 如何排序IPV4和IPV6的地址呢?
- jsp里如何实现内容文本框的编辑(就像csdn发帖的时候,内容文本框的编辑)的效果
- jsp初级问题.大家帮帮忙
- 南帆软FineReport vs 北润乾RAQ
- jsp与javascript问
- 如何去掉tomcat服务器运行时的IE地址里面的:8080?直接输入IP地址即可以访问?
- hibernate执行总是出错,求解???
- ---------???----------
你new File("D:study\\test.txt");
如果抛异常了就不存在!在异常处理代码块那里,做相应逻辑处理!
java.io.File file = new java.io.File("D:study\\test.txt");
Boolean a = file.exists();
System.out.println(a.toString());
Boolean a = file.exists();
System.out.println(a.toString());