stdin now pipes the input to stdout and the txt file