I have been using the CSVToArray() Function as found here: Javascript code to parse CSV data
The following code creates a download link to a .csv file that contains data from a string.
window.URL = window.URL || window.webkiURL;
var blob = new Blob([csv]);
var blobURL = window.URL.createObjectURL(blob);
$("#downloadLink").html("");
$("<a></a>").
attr("href", blobURL).
attr("download", "data.csv").
text("Download CSV").
appendTo('#downloadLink');
My question is how can I save the data from my string to a current .csv or excel spreadsheet? My aim is to get the data auto-populated into a basic template.