Error using split
Does anyone know why I am getting an error when I run this?
private string cutString(string str)
{
char[] cDividers = {' ','>','<'};
string[] segment;
segment = str.Split(cDividers);
return segment[0].ToString();
}
Error:
An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module.
when I remove the '<' it will run fine.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Tanvir HudaRank #4,089 · 366 reputationPosted Mar 25, 2004, 2:46 PM EST