@Teranoz:
If you consider a large amount of lines (coupla 1000) it is surely faster, to step back through the text character by character to find the CrLf you want.

Splitting will cause the creation of a huge string array, duplicate all string data from .Text, and in the end you put everything back together. Might be a little faster, if a .Text contains only some 20 or 30 lines, but will cause huge string copying operations with larger amounts of text. The other method needs only one string copy operation.
Nevertheless, splitting is certainly one more approach for this, as we often find more'n one solution for a problem.


@David:
Quote Originally Posted by dglienna View Post
Never said that. Just commenting on your post...
Ok. Then the answer is: Goto doesn't count. Not for me.