When to use StringBuilder? [duplicate]
I’ve got an article on this very topic. In summary (copied from the bottom of the page): Definitely use StringBuilder when you’re concatenating in a non-trivial loop – especially if you don’t know for sure (at compile time) how many iterations you’ll make through the loop. For example, reading a file a character at a … Read more