Re: Temp filename function?
Re: Temp filename function?
- Subject: Re: Temp filename function?
- From: Vince DeMarco <email@hidden>
- Date: Wed, 15 Aug 2001 10:11:52 -0700
On Tuesday, August 14, 2001, at 11:01 PM, John C. Randolph wrote:
I have an app I'm writing that needs to write into a temp file, then
rename/move it when the user saves it.
IIRC, there was a function in OpenStep that gave you a guaranteed-unique
name for a temporary file. Does this still exist?
advTHANKSance,
Try this.
NSPathUtilities.h:FOUNDATION_EXPORT NSString *NSTemporaryDirectory(void);
or use the mktemp() function in the c-library
NAME
mktemp, mkstemp - make temporary file name (unique)
SYNOPSIS
#include <unistd.h>
char *
mktemp(char *template)
int
mkstemp(char *template)