forum

Home / DeveloperSection / Forums / How do we create a temporary file in iOS

How do we create a temporary file in iOS

Tarun Kumar250705-Sep-2015

In C# we could easily create a temporary file and get its name using this function:

Path.GetTempFileName();

 

This function would create a file with a unique name in the temporary directory and return the full path to that file.

In the Cocoa API's, the closest thing we find is: NSTemporaryDirectory

We are missing something obvious or is there no built in way to do this?


Updated on 07-Sep-2015

Can you answer this question?


Answer

1 Answers

Liked By