I have file like this:
int1--tab--int2--tab--int3--tab--int4--tab--newline
int1--tab--int2--tab--int3--tab--int4--tab--newline
int1--tab--int2--tab--int3--tab--int4--tab--newline ...
I want to save each row in to an array. I mean all int1 in to an array and want to do the same whit int2 int3 ...
I realy dont know how to do it please help me
I already try read it line by line
#include <sstream>
#include <string>
std::string line;
while (std::getline(infile, line))
{
std::istringstream iss(line);
int a, b;
if (!(iss >> a >> b)) { break; }
}