If you meant about redirecting the output of a program into a file you can readily print, use this example:
Code:
c:\> dir > output.txt