From a text file with several strings I transform them to a list and I need to compare each word to know if the elements of that list match the elements of another list something like a lexical analyzer.
The problem is that when I try to call a foreach string I can not capture it.
Dim ruta = My.Computer.FileSystem.SpecialDirectories.Desktop & "Pequeno.txt"
Dim rutaRes = My.Computer.FileSystem.SpecialDirectories.Desktop & "Reservadas.txt"
Dim rutaOP = My.Computer.FileSystem.SpecialDirectories.Desktop & "Operadores.txt"
Dim names1 As String() = System.IO.File.ReadAllLines(ruta)
Dim names2 As String() = System.IO.File.ReadAllLines(rutaOP)
Dim names3 As String() = System.IO.File.ReadAllLines(rutaOP)
For Each Email As String In names1
Dim queryS = Email.Except(names2)
Next
Dim Query1 = names1.Except(names2)
Dim Query2 = names1.Except(names2)
Dim querRes = Query1.Except(names1)
Dim querOp = Query1.Except(names1)