I am having trouble getting my code to output the data into a CSV file. Here is the main function. Everything runs correctly and the main function works and gives the correct output in a terminal but it doesn't put the data into the csv file as I thought it should. Any help would be greatly appreciated. Thanks for taking a look.
I have all permissions. It may just be that it is running correctly but I do not know where to access the data file that is created. I figured it would just pop up in excel which it does not so then I tried to look for it in excel as possibly being saved. I am probably just an idiot and not realizing that it is saved somewhere obvious that I am not looking but I'm not sure. I am very new to C++.