Programmers chat
Wednesday, 26 February 2014
Program To Print all File Names from a folder
import java.io.File;
public class FileListFromFolder {
public static void main(String a[]){
File file = new File("C:/MyFolder/");
String[] fileList = file.list();
for(String name:fileList){
System.out.println(name);
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment