C does not support try, catch, and throw.
In C++, you can save the output to a file, or to some memory structure that would be displayed in a catch block.
Press key F2, or select command Save from menu File.
You can have more than one output-file opened in the same time, see manuals of functions fopen, fclose, fwrite, fprintf, ...
This can be done using the logsave command. To save the output of a command to a log file using logsave, type the command using the following syntax:logsave (path and name of log file)'(command)'Notice how there are single quotation marks around the name of the command. Although these are not necessary for all commands, it may be required for commands containing spaces or other special characters. Unlike in Windows, where the output of the command can either be written to standard output or a log file, logsave will write a copy of the output to both.If the command has progress bar output, you may want to use the -s argument to prevent these lines from being written to the log file. Also, by default logsave does not append the log file, but instead overwrites it, so if you are using a bash script or something to write a log of output, the -a argument may be useful to ensure that the previously written text is appended instead of being replaced.
It's an input and an output device. Programs and data are input from the hard-drive to the computer's memory for processing. The results are written back onto the drive when you save your work.
Use Save As Command...
to save the output in a file and display the same ion the VDU
throw away
Launching the Command Prompt in WindowsThere are many ways to access the command prompt, you only need to do one of the following below:Go to Start - Programs - Accessories - Command PromptClick Start - Run (or Windows Key+R), type "cmd", then press enter. Note: you don't need to include the speech marks.Similar to the above, on Windows Vista or 7, open the start menu, type cmd, then press enter.Launching the Command Prompt with a Batch FileOpen Notepad (Run "notepad" or Start-Programs-Accessories-Notepad)Type the following in notepad: "start cmd.exe" (without speech marks)Open the Save dialog (Ctrl-S or File-Save)Type in "cmd.bat" and Save as Type: All files (*.*), then save the file.Launch the cmd.bat file.
yes
save
a file
The Save command cannot be undone.