I used to code in C language in the past and I found the scanf function very useful. Unfortunately, there is no equivalent in C#.
scanf
I am using using it to
You can use scanf directly from C runtime libraries, but this can be difficult if you need to run it with different parameters count. I recommend you to regular expressions for you task or describe that task here, maybe there is another ways.