读取当前目录

		File directory = new File("");//参数为空 
		String courseFile = directory.getCanonicalPath() ; 
		String pa = directory.getAbsolutePath();
		System.out.println(courseFile); 
		System.out.println(pa);

  

posted @ 2016-09-19 11:21  cdsj  阅读(104)  评论(0编辑  收藏  举报