Java IO

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

Post a Comment

0 Comments

Recent in Recipes

3/Food/post-list