How to delete file Using SubString of that File Name
<p>I have file like </p>

<pre><code>LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000817
LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000818
LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000819
</code></pre>

<p>at location <code>"C:\temp"</code> I want to delete all files whatever starting with <code>"LOG_EXPORT_TIME_STAMP_IMAGES"</code>.I have done some Google and got the code like</p>

<pre><code>File file = new File("c:\\Temp\\LOG_EXPORT_TIME_STAMP_IMAGES-LOG1-T20130119_000817");

file.delete()
</code></pre>

<p>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?</p>
