package satish.snt.java;
import java.io.File;
public class FileListFromFolder {
public static void main(String a[]){
File file = new File("D://satishpd");
String[] fileList = file.list();
for(String name:fileList){
System.out.println(name);
}
}
}
OUTPUT:
System Volume Information
Adobe Photoshop 7.0
snt solutions
java progs
import java.io.File;
public class FileListFromFolder {
public static void main(String a[]){
File file = new File("D://satishpd");
String[] fileList = file.list();
for(String name:fileList){
System.out.println(name);
}
}
}
OUTPUT:
System Volume Information
Adobe Photoshop 7.0
snt solutions
java progs
0 Comments