Inputing a .csv file and editing the info on it?

Hello, I'm currently doing a project for my intro to computer science class. The task is to bring in a .csv file with thousands of data with 2 columns and output another .csv file where it gets the average of each columns on a third column.

I am having a hard time outputting but I understand how to bring in the data file.
If anyone can help, I'd appreciate it.
csv is just a text file with commas between 'columns' in spreadsheet terminology.

so you can just write
myfile << col1variable << "," << col2variable << "," .... etc

to write to it.

reading, use the commas as your delimiter.
Topic archived. No new replies allowed.