in reply to Writing to csv file

See answers to How do I create a CSV from a 2D array?