Re: Flat File Reading
From: mwazir (mwazir_ns_at_vsnl.com)
Date: 06/04/04
- Next message: Billy Cormic: "global dataset"
- Previous message: Cor Ligthert: "Re: Why won't my forms open in the designer?"
- In reply to: Andrew: "Flat File Reading"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Flat File Reading"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Jun 2004 17:25:38 +0100
Hi Andrew,
How about something like this
Dim oStream As New IO.StreamReader("c:\myfilename.txt")
Dim strReadLine as string
While (oStream.Peek() > -1)
strReadLine = oStream.ReadLine()
Debug.Writeline("Record 1: " & Strings.left(strReadLine, 10)
Debug.Writeline("Record 1: " & Strings.right(strReadLine, 10)
End While
HTH
-- Wazir "Andrew" <ashushujev@solidnull.com> wrote in message news:e8b111df.0406040802.64a69d58@posting.google.com... > Hi, > > I have a flat file with fixed length data all in continuous form with > two records shown below > > 01500 345202600 4939 > > output required in readable format with two records: > > Record 1: 01500 3452 > Record 2: 02600 4939 > > Im puzzled with ReadLine() function in VB.NET in splitting above line > into two records and then processing each one in turn. > > I would appreciate any help in this matter. > > > Andrew
- Next message: Billy Cormic: "global dataset"
- Previous message: Cor Ligthert: "Re: Why won't my forms open in the designer?"
- In reply to: Andrew: "Flat File Reading"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Flat File Reading"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|