Set a file output.
file should be a file object open for writing.
file
An open file.
An emitter object.