I am pulling in data from a .csv file. I want only data from column E, but this is conditional on what is specified via column A.
That is, I want to pull the double (type) values given that column A says "USD Libor/Swap".
As of right now it just outputs every line. I've attached a picture of the Excel .csv file for you to see for reference.click here for image
How can you do this? Thanks
string line;
ifstream ycratel; //create the stream object
ycratel.open("YC Rate Levels.csv");
if (ycratel.is_open())
{
while (getline(ycratel,line))
{
getline(ycratel, line);
cout << line << endl;
}
ycratel.close();
}
else cout << "Unable to open file.";