File pathName=new File("c:\\");
String[] fileNames=pathName.list();//列出所有根目录下的子目录和文件