Hi,
As I understand what you are trying to achieve,
· You have a forms library of InfoPath forms.
· Each form has a number of form fields.
· You want a CSV file of rows for every InfoPath form, with columns matching the form fields.
Is this a one of job? If so, propagate all the InfoPath fields up to the document library. Create a custom view of the libaray. Export the library as a Excel File under the action tab. Save the Excel as a CSV file.
I hope this helps