From: stuart yarus Date: 2006-06-06T23:21:45+09:00 Subject: Re: leaving files open On 6/6/06, James Edward Gray II wrote: > On Jun 6, 2006, at 8:53 AM, Mat Schaffer wrote: > > > But I think the biggest danger you face is loosing some of the data > > you wrote to the file. It's possible that some data is in a buffer > > and hasn't actually been written when the program exits. Closing a > > file writes the buffer, so not closing it and just exiting may > > leave buffer data unwritten. FWIW, kill -KILL and program crashes loses written but unsynced data. > > All files should be closed on exit, assuming exit!() wasn't called. > > James Edward Gray II > >