讀d盤下的文件
1. 輸出文件數
2. 列出文件名
public static void main(String[] args) {
String path = "d:";
File file = new File(path);
File f[] =file.listFiles();
System.out.println(f.length);
for (int i = 0; i < f.length; i++) {
System.out.println(f[i] +"\t");
}
}