binuts
asked on
Reding directories using JAVA
I would like to know, how to read directories and search through the files in it using JAVA. Also i want to know how to get the permissions for each files in the directory. All your comments regarding this are welcome.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Ravindra76. It worked.
See the documentation of your systems
c:\java_hone\src\java\io\F
It has all methods.
list() - Listing all files
isDIrectory() - Is directoy
isFile() - Isa file
canRead() - Is file readable
canWrite() - Is writable.
Best of luck