Console application

D

Dave

What is the method I need to invoke to have a console application pause for
user input before continuing execution?

IOW, I need the console app to execute, display a prompt, pause for the user
to enter an input value, and, after the user presses ENTER, read and assign
the input value to a variable and continue execution.

Does anyone have example statements that will accomplish this?
 
H

Herfried K. Wagner [MVP]

Dave said:
What is the method I need to invoke to have a console
application pause for user input before continuing execution?

Take a look at 'Console.ReadLine' (and 'Console.Read').
 

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

Top