Add utility function for writing a file
Add utility function for writing a file

Allows writing to stdout as well as selecting if the file should
be overwritten.

rainycape/gondola,rainycape/gondola,rainycape/gondola,rainycape/gondola