From: Gregory Brown Date: 2007-08-12T23:02:59+09:00 Subject: Re: Sorting a logfile, how would you write it? On 8/12/07, Andrew Savige wrote: > --- William James wrote: > > Of course. But I'm willing to take that miniscule chance when > > I'm doing a write to a small file that takes a fraction of a > > second. > > That may be an acceptable risk for a program written for private use. > Not so for a production program. After all, impatient users often > press [CTRL-C] in my experience, and that could cause corruption > if it occurred while the file was being rewritten. You can of course capture that, but you're write that it's creating additional unnecessary work.