I have been given a database class that writes to List<string> to a .txt .
My issue is I need parse the list into a text field and listbox and edit the information edit/add/remove entry by entry in a new form based on the selected index of the previous form. Now obviously I've gotten as far as getting the class working between the two forms. What I can't figure out is what is the best way to go about searching for the select index of the previous forms listbox and editing just that piece of the .txt. attached is the solution and all the source I'm working off.

Searching is easy with just the method .Contains()
Also, you can use IndexOf().

Of course, the best of all words is to search the thing with Linq.
There are a lot of options.