file redirection output working. Now working in input