prompt> myprog < input.txt prompt> myprog > output.txt prompt> myprog < input.txt > output.txt # ...redirect STDIN and STDOUT...