I have spent hours trying to fix this problem I have, basically I want to only display column 1 from my text file in my rich text box.
Each column is seperated by a space (" ")
When I run the following coding it shows all columns.
RichTextBox1.Text = System.IO.File.ReadAllText("Path")
Dim str1() As String = Nothing
Dim LinesList2 As New List(Of String)
For Each line1 In LinesList2
str1 = line1.Split(" "c)
If str1(0) = line1 Then
Dim Hold As String = Nothing
Hold = line1 & " " & str1(1).ToString
LinesList2.Add(Hold)
End If
Next
LinesList2.Sort()
For Each Str As String In LinesList2
RichTextBox1.AppendText(Str & Environment.NewLine)
Next