Console Application Question

  • Thread starter Thread starter Jacques Daniels
  • Start date Start date
J

Jacques Daniels

I am using System.Console.WriteLine(" ") to output the results of a function
to the console window. Before I can see the results of my function, the
window is closing. How can I prevent this?

Thanks
 
Jacques Daniels said:
I am using System.Console.WriteLine(" ") to output the results of a function
to the console window. Before I can see the results of my function, the
window is closing. How can I prevent this?

Thanks

Hello,

Just add System.Console.Readline() at the end, and the console will wait for
you to press enter before closing the window.
 
* "Jacques Daniels said:
I am using System.Console.WriteLine(" ") to output the results of a function
to the console window. Before I can see the results of my function, the
window is closing. How can I prevent this?

Start the application from the command prompt ("cmd.exe").

- or -

Add a call to 'Console.Read' at the end off the application.
 
Back
Top