Hi All - I am using this code to find and remove duplicates, but now what I need to do is search for the duplicate, but only remove the first duplicate found in the text file. I could have up to 3-4 duplicates in the file. Having a hard time searching for this.

Code:
Dim filename As String = "c:\scripts\scan.txt"
File.WriteAllLines(filename, File.ReadAllLines(filename).Where(Function(l) l <> TB_Search.Text))