• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1559
  • Last Modified:

How can I view the output of a console application?

When writing a console application in Visual Studio, the output appears for only a fraction of a second.  Short of redirecting the output, how can I make the command line box persist so that I can read the output?
1 Solution
do a console.readline() which will wait on user input. that way u get to see what is displayed.
The command window in a console application persists while the application is running.
Make sure the application is not shutting down. Then handle the close (Press the X) properly.

As a side note; you can make a windows form application display a command window. it will persist until the window is closed.
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

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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