Click to See Complete Forum and Search --> : To Get The Absolute Path Of A File


kalpana
March 29th, 1999, 07:00 AM
My Actual problem is that I want to get the absolute path of a file whose path I don't know to specify(while creating the file Object) In other words I want my application to perform an action similar to 'find' command on my computer using a Java application.

Regards

Kalpana

Ravi Raina
March 29th, 1999, 02:27 PM
there is a method in file class which is as follows

String getAbsolutePath();

Try this it should work.

Ravi