changing the input from redirected streaming to the parsing of a file