Finding a matching string
Thank you for your quick reply. Your code is far more efficient than the programming punch card idea I had for it.
I filled in the blanks (no doubt incorrectly) and it keeps hanging up on the Line 'For Each f As String In File.ListFiles(File.Combine(File.DirRootExternal, "Keypads"))'. Is there a library I need? Thank you for your assistance Erel!
Sub Search_Click
For Each f As String In File.ListFiles(File.Combine(File.DirRootExternal, "Keypads")) 'Folder name
If f.EndsWith(".txt") Then
Dim s As String = File.ReadString(File.Combine(File.DirRootExternal, "Keypads"), f)
If s.IndexOf("test") > -1 Then
Search.Text = "True" 'MATCHING FILE
End If
End If
Next
End Sub