R
Ron
Hello,
I have to concatenate some large strings which end up in a
text 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
I have to concatenate some large strings which end up in a
text 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