CSV file output writing