stdiostream( FILE* fp );
fp
A standard I/O file pointer (can be obtained through an fopen or _fsopen call). Could be stdin, stdout, or stderr.
Objects of class stdiostream are constructed from open standard I/O files. An unbuffered stdiobuf object is automatically associated, but the standard I/O system provides its own buffering.
stdiostream myStream( stdout );