摘要: 一.I/0:input/output1.java.io.file表示:文件或文件夹(目录)File f = new File("文件路径");注意:相对路径:非web项目的相对都是以项目为起点.(src/a.txt)(建议)绝对路径::d/bin/a.txt(以盘符开头). 2.文件常见方法bool 阅读全文
posted @ 2017-05-07 19:53 锦绣河山锦 阅读(88) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { /** File f = new File("D:/a/1.txt"); //读取a文件,在那个地方,\\ //file f = new File("文件路径"); //"\\" 阅读全文
posted @ 2017-05-07 19:52 锦绣河山锦 阅读(80) 评论(0) 推荐(0) 编辑