G
Guest
I understand that the stringbuilder object can create a string of text much
more quickly/efficiently than a string object. I am just checking - if I
have a textfile with say 1000 rows of data - say 50 columns per row uniformly
- does it make any difference if I read this data directly into a string from
a StreamReader or into a StringBuilder object? Is there any criteria for
using a StringBuilder object over a string or vice versa?
While I'm at it - this data will end up in a .Net dataTable object. If my
dataTable: dt1, exists and has 50 columns (correct datatypes) can a
StreamReader read the data directly into the dataTable?
Thanks,
Rich
more quickly/efficiently than a string object. I am just checking - if I
have a textfile with say 1000 rows of data - say 50 columns per row uniformly
- does it make any difference if I read this data directly into a string from
a StreamReader or into a StringBuilder object? Is there any criteria for
using a StringBuilder object over a string or vice versa?
While I'm at it - this data will end up in a .Net dataTable object. If my
dataTable: dt1, exists and has 50 columns (correct datatypes) can a
StreamReader read the data directly into the dataTable?
Thanks,
Rich