How to write binary data to a file in ios [duplicate] - iphone

This question already has answers here:
iPhone writing binary data
(2 answers)
Closed 9 years ago.
Iam new to iphone development.
I have binary data(audio file content) in a NSData variable and i want to write that to a file in device.
Can anyone share me a snippet or links of how can i do the same.
Thanks in Advance,
Dinesh

You can easily use :
writeToURL:atomically:
writeToFile:atomically:

Related

Reading JSON in Objective-C [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Which JSON library to use for data on iPhone
I have a JSON file. I want to read each element value and store those values into an array.
How do i proceed?
Use NSJSONSerialization. It's built in.
http://developer.apple.com/library/ios/documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html

How to read the data from the wikipedia in iphone? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
API for Wikipedia in Objective C?
I am implementing one iphone application in which I want to parse the data from the wikipedia document and dipply in my format.
I have seen one application on itunes its possible.
Please give me advice if its possible.
Thanks in advance.
Wikipedia is running on MediaWiki engine. Check the docs. Another way is to useSpecial:Export the And then you just parse the XML content. Also you should check the using guidelines page:link

How to display epub file in UIWebview [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Reading ePub format
I want to show my .epub file in iPhone application.
The answer can be found over here
Reading ePub format

iphone load csv into UITable [duplicate]

This question already has answers here:
CSV parser with low memory footprint for iPhone
(3 answers)
Closed 8 years ago.
I wish make this thing: load an csv took from the web (http://mywebsite.com/myfile.csv) and parse into a UITableView...
is there any fast method to do this?
thanks in advance
CSV parser with low memory footprint for iPhone

iphone : objective-c : how to compress NSString? [duplicate]

This question already has answers here:
Compress/Decompress NSString in objective-c (iphone) using GZIP or deflate
(4 answers)
Closed 7 years ago.
I want to compress an NSString. How I can do that in objective-c (iphone).
here you may find you answer.