Hi everyone…
I have my call logs displayed in a list format with name,phone number and other details…now i want to write all this data to a text file ,convert it into csv format and then export this csv file…
Please help how to achieve this…steps to do this would be helpful …
Thanks.
This forum is not a “write my app for me” service. Provide code that you have tried, what you are expecting it to do, and how that differs from what it does.
What do you want to do with the file, whatever format it may have?
Your variable names seem strange. If the list is a list of calls, the variable should be calls. Otherwise this is very confusing.
For step 1 you have to understand what you actually want to build. What data should be in there? How should it be seperated?
Then you have to find a way to transform the array of data you have into that format. One “naive” way is to loop over the data with for … loop and add to a string at the end. When the string is in the correct format, go on with step 2. (The other non-naive way is to find a library to build a CSV from an array automatically. They probably exist, but you will have to find the right one that works.).