hi,
If File.Exists("F:\User.txt") Then'Load user accountsDim sr As StreamReader = New StreamReader("F:\user.txt")Dim sInput As String = ""Dim ThisRow() As StringDim sData() As StringDim i As Integer'//=Read all Data into sInputDo While sr.Peek >= 0sInput = sInput & sr.ReadLine & ControlChars.CrLfLoopThisRow = Split(sInput, vbCrLf)For i = 0 To UBound(ThisRow) - 1sData = Split(ThisRow(i), ",")Dim lsvi As New ListViewItem(sData, 2)ListView1.Items.Add(lsvi)NextListView1.Sort()sr.Close()End If
i tried with this it is not working at Split
if
{
sInput = sInput + sr.ReadLine() +
}
ThisRow = sInput.Split(
sData = Strings.Split(ThisRow(i),
listView1.Items.Add(lsvi);
listView1.Sort();
sr.Close();