I want to create a multi-line delimiter to split a text document.
The overall delimiter looks something like this.
\r\n is the actual carriage return and line feed, they are shown here as escape characters for visualization purposes.
To create this delimiter, I have to put together two strings.
- “Line 1\r\nLine2\r\nLine3\r\n”
How do I concatenate the two strings together with the \r\n in the middle? (only one line break)
I tried using Environment.NewLine but I printed this out in a message box, the concatenated result is a two line break.
Edit: I tried using vbCrLf but I get the same result as well
What I need is:
What I currently get is: