'Write results to a CSV file.'

def WriteCSV(self, remove=False):

    with tempfile.NamedTemporaryFile(suffix='.csv', delete=False) as fp:
        writer = csv.writer(fp, delimiter='    ')
        writer.writerow(['Benchmark', 'Time', 'DBSize', 'Queries', 'Subjects', 'Predicates', 'Values'])
        for row in self.scratchpad[2:]:
            writer.writerow([row[0], row[1], row[3], row[4], row[5], row[6], row[7]])
        logging.info('CSV    File    is    in    %s', fp.name)
        if remove:
            os.unlink(fp.name)
