NSData *data; data = [self fillInSomeStrangeBytes];
My question is now how I can write this data on the easiest way to an file.
data
writeToURL:atomically: or writeToFile:atomically: if you have a filename instead of a URL.