How can i read and write the data into a CSV file which i uploaded to dropbox?
Dropbox offers an API you can use for programmatically listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developers
For iOS in particular, we offer both Objective-C and Swift SDKs:
Please refer to the documentation for whichever one you want to use for information on how to upload and download files with it.