replacement for sscanf?

  • Thread starter Thread starter Mark Oliver
  • Start date Start date
Mark said:
Hi.

What is the best replacement for sscanf?

Thanks,
Mark
A combination of different Parse() methods + Console.ReadLine() should
be good to read the data. If the data is separated by a known char, you
can probably use String.Split() as well.
Or,
Use RegEx and write your own scanner.
 
Hi,

String.Split() works, but I was hoping for a inverse of String.Format
that works in the same way as sscanf inverses sprintf.

Thanks,
Mark
 
Back
Top