How can I get the output of a.out into a readme file?
You can use the X-Windows cut-and-paste options. A more systematic way is to enter the Unix command “a.out > readme”. This redirects the output of a.out into the file readme (instead of to the screen). You can still input data from the keyboard (e.g., if your programs call scanf). However, the screen will be blank, as all output (including printf statements) goes to the file, not the screen. How can I get the output from several programs into one readme file. The Unix command “a.out > readme” overwrites the original readme file. Use “a.out > readme” the first time. This creates the file readme, and puts the output of a.out into it. If the readme files already exists, use the Unix command “a.out >> readme” to append to it.