cordova - How to delete .csv file using phoneGap -
we can create .csv file , write & read data form .csv file
we flowed file api documentation
now need delete .csv file.please guide us.we have person.csv file in mobile memory. need deleted person.csv file
we tried
function ondeviceready() { window.plugins.orientationlock.lock("portrait"); window.requestfilesystem(localfilesystem.persistent, 0, gotfs, fail); } function gotfs(filesystem) { filesystem.root.getfile("ccil/settlement/routesalesdispatchedheader"+namebranchit+""+lastfour+""+numberofcountvist+".csv", {create: true, exclusive: false}, gotfileentry, fail); // filesystem.root.getfile("ccil/settlement/routesalesdispatchedheader.csv", {create: true, exclusive: false}, gotfileentry, fail); } function gotfileentry(fileentry) { //alert("seeeeee32"); fileentry.createwriter(gotfilewriter, fail); }
we need deleted before write file sdcard .please guide us
Comments
Post a Comment