Output to csv file data.