Neven MacEwan asked:
> Does anyone have a component/code to deal with temp files
> (creating and cleaning up)
The easiest way to do this is to create an appropiate wrapper about the
Win32 call CreateFile using the FILE_FLAG_DELETE_ON_CLOSE flag. Combining
this with the GetTempFileName API call abnd you can very quickly create a
temporary file that will automatically close when you are finished with
it.
>From there is it a simple matter of wrapping the Windows file handle up
with a TStream derivative (as we have done to create a TTempFileStream),
or temporary database file, a memory mapped file for extra swap space, or
how ever you want use the basic file handle.
Cheers, Max.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz