• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get the directory of the file?

 
Zee Ho
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any good way to get the absolute path of the directory of one file object? currently, I get the absolute path of the file object and cut the string to what I want . but it seems stupid.
Any smart way in JDK 1.42+? thx
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!