[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io.close inconsistency
- From: Miles Bader <miles.bader@...>
- Date: Thu, 17 Jan 2008 17:04:52 +0900
Flemming Madsen <lua@themadsens.dk> writes:
> While I agree that files should be closed explicitly, it is often the
> responsability of the operating system to close open files at end time. This
> means that files are closed even when faced with buggy runtime systems or
> program crashes. (At least this is true for Unix like systems and Win32)
The OS usually can't take care of an unwritten buffer in a buffered
stream though (since such things are almost always the responsibility of
user-level libraries)...
-Miles
--
Fast, small, soon; pick any 2.