The file "airports.csv" contains 12 pieces of info per line - separated by commas:
BIN,"Bamiyan","Bamiyan","Afghanistan","AF",34.800000,67.816667,701,"Afghanistan",\N,\N,1149361
(there are 3 such lines for now)
How do I modify my program to take the 1st, 3rd, 5th,6th,7th pieces of info per line and store them in an array-
ill later use that array to rewrite the file .
#include <fstream>
#include <iostream>
#include "conio.h"
#include <cstring>
using namespace std;
int main()
{
ifstream ofile; //open file
ofile.open("airports.csv");
string dump[12];
string infoRequired[3][5];
//for loop will come here once I/O code is finalised
ofile>>infoRequired[1][1]>>dump[1];
cout<<infoRequired[1][1]<<dump[1]; //testing to see if pieces of info are copied
getch();
return 0;
}