I need to send the output data from a .cpp file to a .csv file so that I can import it into excel for further work. I was reading some stuff online, but I was getting confused.
I need the data in the .csv file to look like:
"a1" , "a2" , "a3" , ... , "aN"
"b1" , "a2" , "b3" , ... , "bN"
Two lines should be good for now, since they will each become either a row or column in excel.
So if anybody can help me write generated data from a .cpp file to a .csv file, I would greatly appreciate it.