Re: Creating temporary files?
Re: Creating temporary files?
- Subject: Re: Creating temporary files?
- From: Paul Chakravarti (pc000) <email@hidden>
- Date: Sat, 22 Jun 2002 13:39:44 -0400
On Saturday, June 22, 2002, at 12:35 PM, Per Persson wrote:
On Friday, June 21, 2002, at 01:39 PM, Dinu Gherman wrote:
Isn't there some standard way to create a temp file
Check out the C functions tmpfile() and tmpnam().
sherm--
You need to be careful with race conditions when creating temp
files - the mkstemp(3) interface (which atomically creates and
returns fhe file descriptor of the tmp file) is the preferred
mechanism rather than tmpfile/tmpname (which are largely
deprecated).
PaulC
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.