If the console application is not interactive, a simple way of obtaining the program output is through output redirection. Select the Settings option from the Project menu in the menu bar. The Project Settings dialog will be displayed:

Program Redirection

In the Program arguments field on the Debug tab panel, enter the command to redirect the output of the application to file. When the program is built and executed, all output will then be redirected to the specified file.

If the application is interactive, it is difficult to use the program with no output being sent to the console window. In this case, it is easier to run the program in the console window and cut the output for pasting into a text file. If the program output is greater than the height of the screen buffer, it is possible to change the buffer size of the window. To change the buffer size, select the Properties item from the System menu, which is the menu that appears after clicking on the icon in the extreme upper left hand corner of the console. A Command Prompt Properties dialog will appear. Select the Layout tab and adjust the Screen Buffer Size Height value:

Command Prompt Properties

To copy contents of the console window, select the desired output and press the [Enter] key. Start a text editor (e.g. notepad, WordPad, emacs, MS Word) and paste the contents of the clipboard.