find and delete a given file(s)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • momotaro
    Contributor
    • Sep 2006
    • 357

    find and delete a given file(s)

    Hi everyone,
    Am trying to come up with a way to look up for given files in a given directory and delete them.
    something like:
    Code:
    ArrayList<File> find(directoryName)
    File find(fileName)
    thx!
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Use FileUtil class in common.io package of apache.

    Here is the api docs.

    Regards
    Dheeraj Joshi

    Comment

    Working...