Do While inputstream.Peek <> -1
newstr = inputstream.ReadLine().Split(",")
item1 = newstr(0)
item2 = newstr(1)
item3 = newstr(2)
item4 = newstr(3)
item20 = newstr(19)
Me.ListView1.Items.Add(item1)
Me.ListView1.Items.Item(ListView1.Items.Count - 1).SubItems.Add(item2)
Me.ListView1.Items.Item(ListView1.Items.Count - 1).SubItems.Add(item3)
Me.ListView1.Items.Item(ListView1.Items.Count - 1).SubItems.Add(item4)
Me.ListView1.Items.Item(ListView1.Items.Count - 1).SubItems.Add(item20)
Loop
inputstream.Close()
我收到索引越界错误,CSV 文件是一个 winamp 库。有人有什么主意吗?