Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Thursday, September 20, 2012

Redirecting standard input and standard output


Redirecting input to stdin from a file -
./a.out < in.txt

Redirecting input from stdout to a file -
./a.out > out.txt

Combining both -
./a.out < in.txt > out.txt