home *** CD-ROM | disk | FTP | other *** search
- /*-----------------------------------------------------------------------*
- * filename - istreamx.cpp
- * Obsolete class istream constructors
- *-----------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C++ Run Time Library - Version 1.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
- #include <strstrea.h>
- #include <fstream.h>
-
-
- // Obsolete constructor, for streams 1.2 compatibility
- #pragma warn -par
- istream::istream(int sz, char* b, int sk)
- {
- ios::init(new strstreambuf(b, 0, 0));
- skip(sk);
- }
- #pragma warn .par
-
-
- // Obsolete constructor, for streams 1.2 compatibility
- istream::istream(int fd, int sk, ostream* t)
- {
- ios::init(new filebuf(fd));
- skip(sk);
- tie(t);
- }
-