I hope you can assist me. My program allows me to save bitmap signatures in .png format in the DirInternal directory. I'm worried that as the files get saved I'm going to run out of space. Now I want to delete all the .png files when I start the app. I have added the wildcards class and I'm able to list *.png files. Now how do I delete these *.png files?
private Sub DeletePNG
Dim myListFile As List
myListFile.Initialize
myListFile=File.ListFiles(File.DirInternal)
For i=0 To myListFile-1
Dim myFile As String
myFile = myListFile.Get(i)
If myFile.SubString(myFile.Length-3) = "png" Then
File.Delete(File.DirInternal,myFile)
End If
Next
End Sub