This content has been marked as final. Show 3 replies
Get the file list from a File object which represents a directory.
do u have any example / any topic should i read on/ tutorial on this as im a java beginner and i dont have much idea...
String directory = ....; File f = new File(directory); String flist = f.list(); // you get file name list as an array of String // edit the array content if you like // or, you could use list(FilenameFilter filter) method for filtering