can now read files from redirection of stdin or pipes.