open output file for writing

Can't write otherwise.