I have a string containing a known number of double values. What is the cleanest way (via C #) to parse a string and connect the results to comparable scalar variables. Basically, I want to make the equivalent of this sscanf operator, but in C #:
sscanf( textBuff, "%lg %lg %lg %lg %lg %lg", &X, &Y, &Z, &I, &J, &K );
... assuming that " textBuff " may contain the following:
"-1.123 4.234 34.12 126.4 99 22"
... and that the number of space characters between each value can vary.
Thanks for any pointers.
source share