|
View/Options/Standard I/O Tab |
Top Previous Next |
|
This tab allows you to control the standard C streams, stdin, stdout, and stderr. Note that these settings take effect only at the point you start an application running; changing them during an application’s execution has no effect.
To specify a file, tick the appropriate File box and type the filename or press the
stdin You can make stdin take input from either the keyboard or a file. In the example above, input comes from the keyboard.
stdout You can make output sent to stdout appear on the PC’s screen, be sent to a file, or both. Ticking the Append box causes any output to be sent to the end of the selected file; existing data in the file are not changed. In the example above, everything sent to stdout appears on the screen and is added to the end of the file mylog.dat. Clearing both the Screen and File buttons would throw away all output sent to stdout. As this is unlikely to be what was wanted and could lead to great confusion, the server silently reselects Screen on exit.
stderr You can make output sent to stderr appear on the PC’s screen, be sent to a file, or both. Ticking the Append box causes any output to be sent to the end of the selected file; existing data in the file are not changed. Alternatively, you can tick the Stdout box and have all references to stderr treated as if they were references to stdout. In the example above, everything sent to stderr appears on the screen and replaces the contents of the file myerr.txt. Clearing both the Screen and File buttons would throw away all output sent to stderr. As this is unlikely to be what was wanted and could lead to great confusion, the server silently reselects Screen on exit. |