WELCOME TO JAVA FAQS
HOW TO LIST ALL THE CONTENTS INSIDE A DIRECTORY?
import java.io.*;
class demo
{
public static void main(String[] args)throws Exception{
File file=new File("c:/manu");
String arr[]=file.list();
for (int i=0;i
{System.out.println(arr[i]);}
}};
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment