I have an example string:
test1\0test2\0test3\0
And I want to be able to copy it to a stringstream. I've tried the following methods which are not working:
sStream << teststring;
sStream.write(teststring, 99);
Is there a simple way to copy text to a stringstream while ignoring null characters?