since the mailing list does not like us asking for help int he subject 
line here is my message again...

i have a string which has a bunch of numbers i want to read out and then
a char buffer as well. the string is of the form:

[num fields] [length field 1] [length field 2] ... [length field n -1]
[length field n] [buffer]

i can easily read the beginning numbers but the data blob is elluding
me. for the first part i want to use the delimiting behavior of >> to
pull out the individual numbers but for the second part i want to just
get the remainder of the stream including whitespace. anyone out there
who is knowledgeable about streams? here is my code so far:

istringstream ist;

ist.str("2 10 17 mark [EMAIL PROTECTED]");

uint32 numFields;

ist >> numFields;

uint32* fieldLength =  new uint32[numFields];

for(uint32 i = 0; i < numFields; i++)
{
    ist >> fieldLength[i];
}
string data;

data = ist.str(); // this returns the entire stream... not what i
want...
ist >> data; // this returns "mark" due to the whitespace... not what i
want...


elrod

Reply via email to