I have file like
LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000817
LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000818
LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000819
at location "C:\temp"
I want to delete all files whatever starting with "LOG_EXPORT_TIME_STAMP_IMAGES"
.I have done some Google and got the code like
File file = new File("c:\\Temp\\LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000817");
file.delete()
but what I observed I will have to pass full name of the file. Can I do it by passing the sub string of that file?