How can I view the output of a console application?

Posted on 2007-10-02
Last Modified: 2013-11-26
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?
Question by:cshore11
    LVL 21

    Accepted Solution

    do a console.readline() which will wait on user input. that way u get to see what is displayed.
    LVL 5

    Expert Comment

    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.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now