Results 1 to 4 of 4
Thread: Managing directories with java
- 07-26-2010, 05:01 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 55
- Rep Power
- 0
Solved: Managing directories with java
I want to create a file explorer window for the "open" option for the file menu in java. Well I know most of it but I don't know how to actually manage a directory programmatically through java.
What I need to know to finish it is:
What is the directory object for java(Like the File object for files)? If it doesnt work like that how do you access a directory?
I guess I can figure out the rest from javadoc but just in case
How do you return the contents of a directory?
Thats it for now, any help very much appreciated.Last edited by bayan; 07-26-2010 at 05:12 PM.
- 07-26-2010, 05:04 PM #2
A directory in the file system is a java.io.File object. Read the File API docs, especially the isDirectory() and listFiles methods.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 07-26-2010, 05:10 PM #3
Member
- Join Date
- Apr 2010
- Posts
- 55
- Rep Power
- 0
Oh...... so simple..... well thanks a lot man appreciate it.
- 07-26-2010, 05:13 PM #4
You're welcome.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
Similar Threads
-
Directories
By KevMeistr in forum New To JavaReplies: 6Last Post: 06-11-2008, 04:03 PM -
Managing Gigabytes for Java 2.1.1
By JavaBean in forum Java SoftwareReplies: 0Last Post: 03-01-2008, 10:23 PM -
Creating and checking directories with java code
By tim in forum New To JavaReplies: 8Last Post: 01-07-2008, 05:41 AM -
Managing Gigabytes for Java 2.0
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-07-2007, 02:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks