Carlos Cobas wrote:
Hi,

I think you should delete them. You might want to have a look at tmpfile &
_rmtmp functions. This is an excerpt from MSDN:

[...]
The tmpfile function creates a temporary file and returns a pointer to that
stream. If the file cannot be opened, tmpfile returns a NULL pointer. This
temporary file is automatically deleted when the file is closed, when the
program terminates normally, or when _rmtmp is called, assuming that the
current working directory does not change. The temporary file is opened in
w+b (binary read/write) mode.
[...]

There's actually a flag which, once passed to CreateFile( ), causes the file to be deleted as soon as its handle is closed using CloseHandle( ).


FWIW,
Ehsan

_______________________________________________
msvc mailing list
msvc@beginthread.com
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to