I'm having a problem with finding and printing an element in a vector.
I want to search my vector to see if an element starts with a sub-string, and if it does, I want to write the whole string to a file.
The first part is done, I just can't figure out how to write the whole string to file.
I've put '???' where I'm having trouble, which is what to put for the output so that the entire element (not just the first part I searched for) is written to the file (RC).
Thanks for the quick reply, but no, that's not what I want. I originally tried that, but it only writes the part of the element searched for, whereas the elements in the vector actually contain longer strings, e.g. IDS_STRING5 "Actuator".
So I need to search for the first part (IDS_STRING5) but write the whole thing to file (IDS_STRING5 "Actuator").