Question: It is possible to use the File class to list the contents of the current working directory.
By: Ash Emailed: 1696 times Printed: 2188 times
Answer:True. The code below shows how this is done.
1. File f = new File(".");
2. String contents = f.list();
Be the first one to add a comment
Most Viewed Articles (in Certification )
Most Emailed Articles (in Certification)