• Post Reply Bookmark Topic Watch Topic
  • New Topic

files in java  RSS feed

 
Prasanna Kumaar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to search a directory say dir ,for a file named say abc.xml and delete it, how to do this?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java.io.File class has methods for enumerating all files in a directory, getting the names of files, and deleting files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!