How would it be possible to read a text file with several lines, and then to put each line in the text file on a separate row in a ListBox?
The code I have so far:
String text = File.ReadAllText("ignore.txt"); var result = Regex.Split(text, "\r\n|\r|\n"); foreach(string s in result) { lstBox.Items.Add(s); }