search files in directory

G

Guest

I want something like DOS "dir" or Linux "ls" to retrieve the contents of one directory.

Is this possible with Java's API?
 
R

Roedy Green

If you'd looked at the API documentation you'd have had no trouble
finding this:

That is not true. Java hides the directory manipulating functions in
the File class, not exactly where any sane person would expect to find
them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top