Codec ░ write

246writeToFile – quick file writing

Works with:

NSDictionary
NSArray
NSData
NSString

For more complicated purposes, NSOutputStream might be the best option, but for simply writing a date or even XML this might be the simplest and fasted way.

576NSDictionary and NSArray plist examples 565Stripping Characters from an NSString 564NSData to NSString and vice versa 484Printing Selectors in NSLog 452Padding with Zeros (or other characters)