File output option

Added option to write to a named file - this makes it possible to use
binder with go generate.