i have an array called items=[\"apple\",\"mango\",\"cherry\"];
items=[\"apple\",\"mango\",\"cherry\"];
i wonder how i can load the array data from text file instead of declaring it?the text f
var file = event.target.file; var reader = new FileReader(); var txt=reader.readAsText(file); var items=txt.split(",");