objective c - How to create the text file in temp directory of an app in Iphone -



please tell me how can create text file in temp directory of app if not exists.
please guide me ,i m not going right way & trying past 1 hour.
sorry friends m unable so.

inorder handle file operations use nsfilemanager. case

- (bool)fileexistsatpath:(nsstring *)path  - (bool)createfileatpath:(nsstring *)path contents:(nsdata *)contents attributes:(nsdictionary *)attributes 

if want know detail see documentaion

http://developer.apple.com/library/ios/#documentation/cocoa/reference/foundation/classes/nsfilemanager_class/reference/reference.html


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -