The Solution 2 is very good.
But, if there are empty spaces, I think they may not be deleted.
void Main()
{
string input= "First Line\r\nSecond Line\r\n\r\nThird Line";
string[] lines = input.Split(new string[]{"\r\n"},
StringSplitOptions.RemoveEmptyEntries);
foreach (string line in lines)
{
Console.WriteLine (line);
}
}
In the sample shown above after SecondLine there is an empty entry due to repition of \r\n. With StringSplitOptions.RemoveEmptyEntries option this empty entry can removed.