Index: [thread] [date] [subject] [author]
  From: Garrett Mitchener <wgm2@acpub.duke.edu>
  To  : 
  Date: 29 Apr 1999 22:48:59 -0400

About reading directories

Someone sent me this email:

I was looking for a way to read the filenames in a certain directory. the 
java web page said the jndi package would help. 
when i tried to 
import javax.naming.*;  
in one of my programs, it says it couldn't find it.

is the jndi in the afs system? if not, what can i do to read file names 
in a certain directory?

------------

I don't know what javax.naming is supposed to do, but I have a feeling
it's related to CORBA or something other than reading files in a
directory.

Look at java.io.File.  It's a class that represents files and
directories.  It's one of few parts of the java library that is not
well desgined.  It should do what you want, however.

	-- Garrett :-)


Index: [thread] [date] [subject] [author]