16 May 2007

Split in C$

private string splitString = "1,2,3,4,5,6";
private char[] sep = {','};

Array a = stringToSplit.Split(sep);
forint i = 0 | i less than a.Length | i plusplus
opening curly braces
Console.WriteLine(a.GetValue(i).ToString());
closing curly braces

No comments: