Takes an input from standard in and outputs it to both standard out and a file specified at run time.