29
Possible Duplicate:
Is there an equivalent to 'sscanf()' in .NET?
sscanf in C is a nice way to read well formatted input from a string.
How to achieve this C#.
For example,
int a,b;
char *str= "10 12";
sscanf(str,"%d %d",&a,&b);
The above code will assign 10 to a and 12 to b.
How to achieve the same using C#?