Click to See Complete Forum and Search --> : Help with ReadLine method


ukleaf
June 7th, 2005, 01:33 PM
Hi guys, could someone point me in the right direction please?

I have 2 list boxes, the first one (lstFullFileContents) contains all lines within a specific file.

I would then like to extract a certain line, in this case always line 5 from that list box to another (lstListBox1)...

Getting lstFullFileContents to show all the lines isn't hard,

Dim line As String
line = sr.ReadLine()
lstFileFullContents(line)

I thought there would be a copy command I could use maybe... but the only one I could find copies the whole list box contents...

Any ideas please?

Many thanks.

Gizmo001
June 7th, 2005, 02:27 PM
lstListBox1.items.add(lstFileFullContents.items.item(4))