• Post Reply Bookmark Topic Watch Topic
  • New Topic

Canonical Path to absolute path  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have string something like this "/c/folder/file.java" i want to convert it to absolute path. Can someone help me on this?

Adeel.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Canonical Paths are absolute paths whereas the vice versa is not always true (but usually they are).

What are you actually trying to achieve?
 
Sheriff
Posts: 21288
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the methods in java.io.File.
 
Ranch Hand
Posts: 43
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need some more elaboration on the question.
Also if you have a code snippet it will be easier to help.

~Joydeep
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!