Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

Pause the console display when running a console app

So sorry to ask this but I'm totally new to .NET and don't know what to look under in help.  I have an application that consists of one entire statement, Console.Writeline("hello").  It flashes so quickly at runtime, I can't read it.  I don't see a pause option????

Thanks : )
0
FatalErr
Asked:
FatalErr
1 Solution
 
Timbo87Commented:
Add Console.ReadLine()

If you want to spruce it up a bit:

Console.WriteLine("Press enter to continue...")
Console.ReadLine()
0
 
armoghanCommented:
Or if you do not want user input you can use

Thread.Sleep(1000) to sleep the current thread for sometime
0
 
FatalErrAuthor Commented:
Thank you both.  Will use Timbo87's answer for now.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now