Can handle output redirection (not append). Error checks for multiple redirections.