PRODUCT : Borland C++ NUMBER : 729 VERSION : 2.0 OS : DOS DATE : October 19, 1993 PAGE : 1/1 TITLE : How to Use strstream /********************************************************* Example code for using strstream *********************************************************/ #include // the old C i/o stuff #include // C++ streams #include char line[100]; // a buffer for lines of input void main(void) { ostrstream mystream(line, 100); // associate line[] with a stream mystream << "testing"; // insertion to mystream printf("%s\n", line); // output using old C style cout << line; // output using C++ style } DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.