Get File List

import java.io.File;
public class GetFileList {
public static void main(String[] args) {
File file = new File("C:\\");
File[] files = file.listFiles();
for (int fileInList = 0; fileInList < files.length; fileInList++)
{
System.out.println(files[fileInList].toString());
}
}
}

Post a Comment

Previous Post Next Post