Page 1 of 1

Add Header Row to exported CSV file

Posted: Tue Nov 20, 2018 8:27 am
by JeffGrant
Hi,

I have a written a script which exports the fields I require to a csv file.
No Drama.

How to add a header row to the export file so the destination program knows what the field heading are for import mapping purposes.

I assume Row 1 of the array should be added before the file is written out?

Thanks

Posted: Tue Nov 20, 2018 12:08 pm
by COBS Tech Support
If you've written a script to write a CSV file manually, why not make the first row the headers?

It depends, of course, on how you've written the script. Can you post an example of what you're doing?

Posted: Tue Nov 20, 2018 12:14 pm
by JeffGrant
Thank. I actually solved this about 1.3 minutes after posting this.

But I thought I delete this post so didn't look silly. Guess I missed that one.. :-(