views:

63

answers:

1

I've saved the contents of server into a NSData. How do I copy the contents of NSData into a file.

+3  A: 

Take a look at the NSData writeToFile:atomically: method. Just pass in the filename and it will do it for you.

Kyle