Only print out to file if there was output.