Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

how to add into CSV file

$
0
0

Hi everyone .. Actully i have an array and i need to add this values to a file called demo.csv.. the array is added successful in the file but if i run the app once again with new array of data the file is recreated and old data is lost and the new array objects are visible.... can help me pls

var array = []; array.push('cd'); array.push('cc'); array.push('sa');

var file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory , 'Demo.csv'); if(!file.exists()){ file.createFile(); } var dataString = array.join(',');

file.write(dataString);


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>