fun writeRows(rows: MutableList<HashRow>): Long
writes out a list of hash data rows to a csv and returns the number of rows written