View Single Post
  #1 (permalink)  
Old 02-08-2008, 08:13 PM
willemjav willemjav is offline
Senior Member
 
Join Date: Dec 2007
Location: Spain
Posts: 199
willemjav is on a distinguished road
Is there a way to read a file directory
Best java friends

Is there a way to read a file directory in a specific folder inside the work directory form a applet . The following code does not work in an applet:

directory = new File(dirname);
if (directory.isDirectory() == false) {
if (directory.exists() == false)
…………
files = directory.list(); // stores the list of file names


willemjav
Reply With Quote
Sponsored Links