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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Incrementing IPv6 address 1
sscanf in c# 20
sscanf 2
convert string to double and count characters 6
scanf or sscanf 3
sscanf 3
Help parsing string 3
Beginning C# 3

Back
Top