R
Ray Mitchell
Hello,
With the C# Format method I can create strings from both literal text and
values of ints, floats, doubles, and the like. Being new to C#, I assume
there is also a way to control field widths, base, precision, etc. in
Format. What I need is a similar function to parse a string and extract
various fields. In C, using sscanf, it is trivial using the various
conversion specifications. I've done it in C# by writing my own
character-oriented state machines and I assume regex could also be used, but
is there something simpler, like a Format counterpart?
Thanks,
Ray Mitchell
With the C# Format method I can create strings from both literal text and
values of ints, floats, doubles, and the like. Being new to C#, I assume
there is also a way to control field widths, base, precision, etc. in
Format. What I need is a similar function to parse a string and extract
various fields. In C, using sscanf, it is trivial using the various
conversion specifications. I've done it in C# by writing my own
character-oriented state machines and I assume regex could also be used, but
is there something simpler, like a Format counterpart?
Thanks,
Ray Mitchell