Searching a file

greetings friends

i am doing my project in intranet.
i want to find a file in an client system using its name.
help me

Please tell me how to find out the path of a file or directory in Java programming.
Thanks.

Hi Srimanta,

If you have a File object created. You can print it out to console to see the actual path.

Alternatively you can use the .getAbsolutePath() method from the File Oobject which returns a String and this should be the path of the file or directory.

Hope this helps.

Martyn