You can attach the text file to the project just by dragging it into the Visual studio solution explorer.
In order to read the content of the file you can use
File.ReadLines[
^] method. That would get you a list of string that you can use for matching the data in the textbox