function to find file path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • curiosity
    New Member
    • Apr 2007
    • 1

    function to find file path

    I want to know if there is any method in JAVA which can return a file path of the file name given?
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Like a search method?

    Comment

    • sicarie
      Recognized Expert Specialist
      • Nov 2006
      • 4677

      #3
      I think the OP might be looking for some of the things in the Javadoc on the File class - there are methods in there to find out if a file exists, and another to return the absolute path where the file exists.

      Comment

      Working...