首页 > 其他 > 详细

读取当前路径,列出xls文件

时间:2016-12-31 18:05:12      阅读:219      评论:0      收藏:0      [点我收藏+]
import java.io.File;


public class GetCurrentDirectory {

	public String GetDirectory()
	{
		File directory = new File("");
		return directory.getAbsolutePath();
	}
}

  

GetCurrentDirectory gcd = new GetCurrentDirectory();
String strLuJing = gcd.GetDirectory();

File f = new File(strLuJing);
ListXls lx = new ListXls();
lx.print(f);

  

读取当前路径,列出xls文件

原文:http://www.cnblogs.com/cdsj/p/6239614.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!