Data can now be written to standard output

This patch allows data to be sent to standard output by setting "-" as the output file.