Thanks all for your replies. I think StringBuilder will
help. My deal is that I have to massage each piece of
data that I read from the external source - it contains
all kinds of stuff like formfeed chars, linefeed chars,
etc. I do not use cr & lf chars for rowdelimeter, more
like ||##. The textfile(s) eventually gets sucked up by a
DTS package. So I did not want to take any chances using
delimeters that may be chars that are already in the data
I am retrieving, so I made up my own custom delimeters.
Then I run a DTS package (com) that I translated to VB.Net.
BTW, anyone know when VS2005 is due out? I can't wait to
get my hands on the bulkDataTransfer class. I have been
having some issues using the DTS package in VB6 and
VB.Net.
Anyway, thanks again for the help.
Ron
-----Original Message-----
Hello,
I have to concatenate some large strings which end up in
atext file. I am just checking if the StringBuilder class
can improve what I am currently doing - and how to
implement this. Here is what I am currently doing:
Do while...true
...
strData += str1 & ColDelimeter
...
strData += RowDelimeter
oWrite.WriteLine(strData)
strData = ""
Loop
Each row is about 10k in size, average and hundreds of
thousands of rows. Can the StringBuilder Class improve
what I am doing? May I request a sample how to use it?
Thanks,
Ron
.