Re: Reading Text File
From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 02/03/04
- Next message: RodrigoE: "Re: IDataReader - cannot read"
- Previous message: Steve: "Strange ADO.NET/Sybase/Sybase OLEDB problem"
- In reply to: Kim: "Reading Text File"
- Next in thread: Bernie Yaeger: "Re: Reading Text File"
- Reply: Bernie Yaeger: "Re: Reading Text File"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 03 Feb 2004 13:44:16 -0600
On Tue, 3 Feb 2004 06:51:17 -0800, Kim <anonymous@discussions.microsoft.com> wrote:
¤ Hi All,
¤
¤ I'm trying to read a text file line by line using StreamReader. I'm encountering a problem when I'm trying to split the retrieved line based on a space. The first line looks like this:
¤ "D" 132404 15/04/03 "TB" "CLB 55052" "7303366846"
¤
¤ The problem is, it splits "CLB 55052" into "CLB and 55052". How do I resolve this?
¤
¤ Any help in this regard is greatly appreciated.
The obvious answer would be to concatenate them back together. Is there a reason why you couldn't do
this if you know how many columns are expected?
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
- Next message: RodrigoE: "Re: IDataReader - cannot read"
- Previous message: Steve: "Strange ADO.NET/Sybase/Sybase OLEDB problem"
- In reply to: Kim: "Reading Text File"
- Next in thread: Bernie Yaeger: "Re: Reading Text File"
- Reply: Bernie Yaeger: "Re: Reading Text File"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|