Board index » cppbuilder » Triming characters off the end of a stream
Dan
![]() CBuilder Developer |
Dan
![]() CBuilder Developer |
Triming characters off the end of a stream2008-01-23 02:16:16 AM cppbuilder55 I have a strstream, which has a few characters at the end of the stream ')|' to be exact, I want to remove them form the stream, but SetLength doesn't work on strstream, and I can't find any other way to turnicate the stream. - Dan |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2008-01-23 03:13:42 AM
Re:Triming characters off the end of a stream
"Dan" < XXXX@XXXXX.COM >wrote in message
QuoteI have a strstream, which has a few characters at the end of the the rest of your operations on that. For example: strstream data; // fill data as needed, then... strstream tmp(data.str(), NumberOfCharsToKeep); // use tmp as needed... Gambit |
Dan
![]() CBuilder Developer |
2008-01-24 06:22:01 AM
Re:Triming characters off the end of a stream
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote
- Dan {smallsort} |