Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

When you run a console application from visual studio the application run so fast and the console closes that you never see the output.

2.00/5 (1 vote)
4 Feb 2010CPOL 5.4K  
Add a call to Console.Readline() or Console.Read() at the end of your Main function this will prever the console from closing until the user presses a key or enter.
Add a call to Console.Readline() or Console.Read() at the end of your Main function this will prever the console from closing until the user presses a key or enter.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)