Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reading Sets of Dissimilar Data

22 views
Skip to first unread message

Mike Copeland

unread,
Jan 22, 2017, 5:44:24 PM1/22/17
to
Is there a simple and efficient way to read and store data that looks
like the following?

123a2345a34b812a2467c1717b2626c2983b3291a8a14c28c

That is, I have a variable number of lines of text data where each
line is comprised of "sets" of integer and character data items. Is
there a technique (such as the "for (int num; ss >> num;)" technique
with an istringstream) that can process a variable number of such data
sets as I have described? TIA


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Öö Tiib

unread,
Jan 23, 2017, 2:37:38 AM1/23/17
to
On Monday, 23 January 2017 00:44:24 UTC+2, Mike Copeland wrote:
> Is there a simple and efficient way to read and store data that looks
> like the following?
>
> 123a2345a34b812a2467c1717b2626c2983b3291a8a14c28c

Who knows. It looks like binary data in hexadecimal representation
of bytes however there is curious single c at end.

12 3a 23 45 a3 4b 81 2a 24 67 c1 71 7b 26 26 c2 98 3b 32 91
a8 a1 4c 28 c

If it is that then it is among most trivial things.

>
> That is, I have a variable number of lines of text data where each
> line is comprised of "sets" of integer and character data items. Is
> there a technique (such as the "for (int num; ss >> num;)" technique
> with an istringstream) that can process a variable number of such data
> sets as I have described? TIA

Your description of it sounds way different than what you example
looks like.

0 new messages