• Post Reply Bookmark Topic Watch Topic
  • New Topic

Canonical Path to absolute path  RSS feed

 
Syed Adeel Asgher
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.
 
AnujS Sharma
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?
 
Rob Spoor
Sheriff
Posts: 21131
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.
 
Joydeep Ghatak
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!