Hi everyone, this is my first post and im just plain confused on how to get what i need here. in the past ive only had single lines of data and just used an input >> char;
but now i have this line of code in a txt file, with like 300 rows...
0x3B timestamp=446218 00 00 00 DC 1C 00 00 00
and i need to read in line by line and then save the 5th and 6th rows as one number, such as in this one, i would need to save 00DC as one number to convert it from hexadecimal to decimal, which i have figured out.
I am thinking about using getline function, but how do i pull out the values i need and store them as a number?
also which is better to store the line as a char array, or as a string??
any help is greatly appreciated.