Possible Duplicate:
Exporting Sqlite table data to csv file programatically – xcode iOS 5 (for an ipad app)
I am developing a simple app. I am using sqlite to save data into a table (locally, in app documents folder). I want to problematically export this table data in a csv file and email it to a person. I mean I want to physically access the csv file after conversion in iPad…. Can anybody give an example application to download? Or the code?
Please help
This should give you a good idea. Assuming a table with 2 rows, this code reads all the values in the table and writes them to and
NSString, which is then written to a CSV file in the documents directory. Let me know if you need clarification on how to make this code work with your specific project.