// To split a string by newlines, see below (requires 'System')
using System
text.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
var result = mystring.Split(new string[] {"
"}, StringSplitOptions.None);
string[] lines = theText.Split(
new string[] { "
", "
", "
" },
StringSplitOptions.None
);