Unless sData is using a different EOL or doesn't have any EOLs, I believe
your code should work. I would ensure the expected EOLs are in sData. If
that doesn't help, give the StringReader class a try. It has a ReadLine
method that gives you the virtually the same functionality as your existing
code.
Scott
"MDB" <nospam> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
Hello all, I have having problems figuring out how to split on a string
rather than a char. Any help would be appreciated. Here is what I am
trying to do.
string[] strMessages=sData.Split("\r\n");
I basically want to split on a new line.