Re: Reading Text File

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 02/03/04


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)



Relevant Pages