I'm using this code to load a text file into list box.
r = New IO.StreamReader(str) While (r.Peek() > -1) ListBox1.Items.Add(r.ReadLine) End While r.Close()
But it loads the whole file into list box. I only want to load those lines of text that contain following number: 2008.
It doesn't matter if the "2008" is at the beginning, middle or the end of a line.
Can you please tell me what to do?