I have a 2D array with generated doubles. I need to write this array to a CSV file so that I can open it in Excel. Is there a method or function in C++ that allows for this to be done? I could do it manually, but it would take a lot longer. Any help is appreciated, thanks.
Jump to Post
Traverse the array and write that in a text file with extension .csv
Write your 2d array entries in comma separated form ending with newline character.
I have provided just the format for you, for above task you can iterate complete array …
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.