I was following this article
And I came up with this code:
string FileName = \"C:\\\\test.txt\"; using (StreamReader sr = new StreamReader(FileNam
Following code gives intended results.
string text="some interesting text\nsome text that should be in the same line\r\nsome text should be in another line" var results = text.Split(new[] {"\n","\r\n"}, StringSplitOptions.None);