Streamreader or Streamwriter?

jigax

Active member
Joined
Aug 17, 2006
Messages
43
Programming Experience
Beginner
Not sure what to use or how to use it. But I would like either streamreader or streamwriter to ignore a line depending on it contents. Thanks in advance.
 
Any time youre appending more than once to a string, use a stringbuilder
Actually, the StringBuilder does come with some overhead. Using a StringBuilder may actually be slower than using string concatenation for a small number of operations. You start to see a benefit from the StringBuilder when making 1 or 2 dozen changes. I haven't actually sat down and tested this rigorously but it's what I've read and I believe I did throw together a quick test a long time ago that bore this out.
 
Back
Top