dump to csv
dump file with temp file