write to file instead of standard output