Redirect output into a file

How do you redirect output into a file?
Topic archived. No new replies allowed.