I have a console program that prints out some data to the stdio. The problem is that when I click the program in explorer. The console pops up, and gone as soon as it prints out the data.
How can I set the console program so that it is not closed after the process is done?