Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Destruction of an istream.

1 view
Skip to first unread message

Stephen J. Muir

unread,
Nov 6, 1986, 10:42:01 PM11/6/86
to
I created a file using the ::open routine, then bound it to an istream:

fd = open ("file", 0);
istream myfile (fd, 0);

When the istream went out of scope, the file was not closed! Is this a bug or
was it because I opened the file myself?
--
EMAIL: ste...@comp.lancs.ac.uk | Post: University of Lancaster,
UUCP: ...!mcvax!ukc!dcl-cs!stephen | Department of Computing,
Phone: +44 524 65201 Ext. 4120 | Bailrigg, Lancaster, UK.
Project:Alvey ECLIPSE Distribution | LA1 4YR

0 new messages