c# split newline code example
Example 1: c sharp split by newline
// To split a string by newlines, see below (requires 'System')
using System
text.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
Example 2: c# string newline
string text = "fkdfdsfdflkdkfk@dfsdfjk72388389@kdkfkdfkkl@jkdjkfjd@jjjk@";
text = text.Replace("@", "@" + System.Environment.NewLine);