I have a file which is formatted in the following way:
0x10c3 0xad6066
0x10c7 0xad6066
0x10c1 0xad6066
0x10c5 0xad6066
0x10c3 0xad6066
I want to read the first value into an array input[] and the second into array param[].
I tried the following:
while(getline(f, line)){
stringstream ss(line);
getline(ss, input[i], ' ');
getline(ss, param[i]);
}
The error I am receiving is the following error: no matching function for call to 'getline(std::stringstream&, uint16_t&, char)'
I am trying to save a string into a integer array. So, how do I save the string into an integer array.