I’ve been searching the net for a while trying to find out how to simply read only lines longer than 0 characters from a .txt file into a listbox in VB. I am using VS 2010 and want to read only lines that contain content into the list box.
For example I want to only read the lines labeled 1.
1
1
1
1
1
You can use a combination of ReadAllLines and LINQ:
To start at the 3rd line, use
Skip: