[patch] KFax
Guillaume Laurent
glaurent at telegraph-road.org
Mon Nov 18 09:34:00 GMT 2002
On Monday 18 November 2002 10:24, Per Winkvist wrote:
> On November 18, 2002 10:15, Ryan Comming wrote:
> > On November 18, 2002 01:06, Per Winkvist wrote:
> > > hTiff = TIFFOpen( file, "r" );
> > > unlink( file );
> > > do things with hTiff
> >
> > And what's the problem with this, exactly?
>
> Why would you want to remove the file before you close its handle?
Guess : So the file is automagically deleted when the program which has opened
it terminates, even if it crashes (the OS ensures it will be deleted). This
is a classic way of avoiding stray temp files.
--
Guillaume
http://www.telegraph-road.org
More information about the kde-core-devel
mailing list