Output a csv file containing exactly n fields