from command line, you input ./direction inputfile outputfile, to practice how to use dup() or dup2()