摘要: 以下三种书写书写形式都可以:File file1=new File("E:\\testCase\\a.txt"); \是转义符 '\\' 转义了 ‘\’ File file2=new File("E://testCase//b.txt"); “//”符号表示当前目录的当前目录 也就是说多几个“/”是没有区别的 File file3=new File("E:/testCase/c.txt"); 阅读全文
posted @ 2014-01-08 14:39 binbiny 阅读(1113) 评论(0) 推荐(0)