write the report to the file specified in the input options