PRODUCT : Borland C++ NUMBER : 729 VERSION : 2.0 OS : DOS DATE : September 18, 1991 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 }