Add output to a file, not necessarily standard output.