Hello,

Can anyone tell me how I can search a folder of csv files to find out if one of the csv files has a particular name in ?

I'm currently searching a folder to bring back all csv files using the code below and this is working fine.
Code:
Dim filetype As String = "*.csv"
Dim dir As String = "X:\Processed"
lstv1.Items.Clear()
For Each filename As String In System.IO.Directory.GetFiles(dir, filetype)
    lstv1.Items.Add(filename)
Next
But now I want to take it a step further and actually search within the files themselves.

Thanks,