Open output file in write-only mode.