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 believe I need to create an output file called "data.csv" in the directory where the program is run but I am not sure what directory that is, how to find out what directory that is, or if that is actually necessary.. Help Please!!
Sorry can't really help as I haven't done this kind of thing before. What I will say is use code tags and space out your code better, it will make it much easier to read and your more likely then for someone to take the time to help you.
put your code between these:
[code][/code]
Meerkat
EDIT: Also I'll be keeping an eye on this as I want to know how to do it as well, so if you find the answer elsewhere would you mind posting your solution here?