convert ascii delimited file into listview with split function?

Dim myStreamAs Stream =Nothing

Dim openFileDialog1AsNew OpenFileDialog()

openFileDialog1.Filter =".DAT files|*.dat"

If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OKThen

myStream = openFileDialog1.OpenFile()

If (myStreamIsNotNothing)Then

ParseFile(myStream)

EndIf

I am wanting to open a pipe delimited ascii file and parse all the elements into a list view.

The first row of the file will contain the column names (also delimited by pipes).Rows are delimited by CR/LF.

I believe the split function will be the mechanism...but has anyone done this?

Thank you.

Greg

[2096 byte] By [hazz] at [2008-1-9]
# 1

here is the answer;

http://www.freevbcode.com/ShowCode.asp?ID=4938

hazz at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic General...