Wednesday, August 5, 2009

How to tokenize string in C#/C sharp

As we know Java has lovely string tokenizer, C# has something similar here.

char[] seps = {','}; //Add as many as u want

string[] tokens = line.Split(seps);

No comments:

Post a Comment