Hello! I am trying to open this CSV file separated by semicolons. I know how to open a text file and I tried searching the way to open a CSV, but most methods seemed extremly complicated.
Does any one have a simple suggestion that would work with what I already have.
#include <iostream>
#include <fstream>
#include <string>
#include <locale>
#include <sstream>
using namespace std;
int main()
{
ifstream in(filename.csv);
ofstream out(...............);
int RID;
int RID_2;
string line;
while( in >> RID >> RID_2)
{
cout << RID << RID_2 << endl;
}
return 0;
}