Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in deleting files in a folder...  RSS feed

 
Ann Toh
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i hav some probem in deleting all the files in a folder. i'm able to check whether there are any files inside a particular folder, if there are files inside that folder, i need to delete all the files inside that folder.
i did use the delete() method but nothing happen at all, it does not delete the files away. can anyone tell me how to write the program?? if possible show me an example.
Thanx in advance...
 
Oliver Nautsch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ann,
Here a short example:

Regards
Olli N.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!