File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Getting all parent directory name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting all parent directory name" Watch "Getting all parent directory name" New topic
Author

Getting all parent directory name

kayanaat sidiqui
Ranch Hand

Joined: Sep 04, 2008
Posts: 122
Hi all,

Suppose i have directory structure like like this-

dir_1/dir_2/myfile.txt

How can i take the output like this "myfile is in : dir_1/dir_2"?
harilal ithikkat
Ranch Hand

Joined: Oct 06, 2008
Posts: 221


i got
/home/student

SCJP 1.5
"A candle looses nothing by lighting another candle"
itechmentors.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting all parent directory name
 
Similar Threads
generate a tree structure
ant in the PATH
Running Book Examples
Ant task to delete directory contents
Error compoling servlets