"DanC" <Da**@discussions.microsoft.com> wrote in message
news:1B**********************************@microsof t.com...
Suppose I 've got a file in which each record contains 3 fields delimited
by blanks. I want to loop through the file and read each record into a
structure containing three corresponding fields.
Something like this?
Dim reader As New StreamReader( "file" )
Dim sLine as String = reader.ReadLine()
Do While Not ( sLine Is Nothing )
Dim sFields As String() = sLine.Split( " "c )
strukture.Field1 = sFields( 0 )
strukture.Field2 = sFields( 1 )
strukture.Field3 = sFields( 2 )
Loop
reader.Close()
HTH,
Phill W.