I have a basic_string of text. There are always 5 words on the line separated by |. I have made that string into a istringstream and i have tried this:
istringstream MyStream(line_of_text);
char cDelim;
basic_string a,b,c,d,e;
MyStream>>a>>cDelim>>b>>cDelim>>c>>cDelim>>d>>cDelim>>e ;
Does not work. "a" contains the whole string, b,c,d,e are blank. I need to figure out how to tell it that | is the delimeter. Is it possible to do this using insertion operators, or do I need to walk the string, one character at a time and look for the | ?
thanks Fred Emmerich