Write output to a file with --output