K
kimiraikkonen
Hello,
I was working on a project that a combobox reads each line from a text
file using this code:
Dim reader As String
reader = My.Computer.FileSystem.ReadAllText("history.txt")
Dim strs() As String
strs = Split(reader, Environment.NewLine)
For Each s As String In strs
combobox1.Items.Add(s)
Next
The problem is: I want to see the last line of text file ordered/
sorted as the "first" item in my combobox like the philosophy "the
last text line must be the most recent item for my combobox"? How can
i do this?
Regards.
I was working on a project that a combobox reads each line from a text
file using this code:
Dim reader As String
reader = My.Computer.FileSystem.ReadAllText("history.txt")
Dim strs() As String
strs = Split(reader, Environment.NewLine)
For Each s As String In strs
combobox1.Items.Add(s)
Next
The problem is: I want to see the last line of text file ordered/
sorted as the "first" item in my combobox like the philosophy "the
last text line must be the most recent item for my combobox"? How can
i do this?
Regards.