I am working on a process that will generate a rather large object and will be exported to csv for consumption by another app. The issue that I am running into is the csv file is too large as a single export.
I expect the solution is somewhat simple, but it alludes me at the moment. If exported, the csv has over 20,000 rows and I need to split these up to several csv files with 1,000 rows (including a header).
I have found several examples to split csv files but nothing that will also include the header row. Also, I wonder if it would be easier to split the object before exporting to a csv but I am certainly open to ideas here.
Any thoughts or insights would be appreciated.
submitted by /u/SleepySysadmin
[link] [comments]
The post Split csv or object to multiple csv files appeared first on How to Code .NET.