MyEclipse和eclipse中访问文件路径的问题

项目名是一个目录,比如clout-note项目如果写一个File file = new File("./demo.txt");那么这个demo.txt就在workspace的clout-note里面(表示的是当前目录下的demo.txt)。当前目录就是项目名。

File file = new File("./demo.txt")其中./就是JSD1603_SE目录。如果../就是代表wordspace目录

posted @ 2017-04-18 17:35  愿意3136  阅读(991)  评论(0编辑  收藏  举报