vendredi 19 juin 2015

Javascript create array from local file.txt

I have this local text file:

test.txt

1
2
3
4
5

I want to create a array with these data, as it would be if I did like this:

var array = [1,2,3,4,5];

So how can i create array with data from test.txt in javascript?




Aucun commentaire:

Enregistrer un commentaire