PRODUCT : Borland C++ NUMBER : 1565 VERSION : All OS : All DATE : October 25, 1993 PAGE : 1/1 TITLE : Creating a C++ stream to output to the printer //-------------------------------------------------------------- // // Here is sample source for creating cprn, a C++ stream // attached to stdprn (i.e. file handle 4 ) // //-------------------------------------------------------------- #include char *prnbuff = new char[1024]; ofstream cprn( 4, prnbuff, 1024 ); int main(void) { cprn << "Hello world." << endl; return 0; } 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.