Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!husc6!seismo!mcvax!ukc!dcl-cs!stephen From: stephen@comp.lancs.ac.uk (Stephen J. Muir) Newsgroups: net.lang.c++ Subject: Destruction of an istream. Message-ID: <631@comp.lancs.ac.uk> Date: Thu, 6-Nov-86 22:42:01 EST Article-I.D.: comp.631 Posted: Thu Nov 6 22:42:01 1986 Date-Received: Sat, 8-Nov-86 06:46:27 EST Reply-To: stephen@comp.lancs.ac.uk (Stephen J. Muir) Distribution: world Organization: Department of Computing at Lancaster University, UK. Lines: 12 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: stephen@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