Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

8 years ago by Rungo73

Hi,

Im working on a little word game. I have a dictionary of words saved as a .txt file.

How do I load that in and assign to a variable ? or put into an array?

Cheers,

Tom

8 years ago by lunarcloud

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest

http://stackoverflow.com/questions/196498/how-do-i-load-the-contents-of-a-text-file-into-a-javascript-variable

Standard Javascript method for loading a file
Page 1 of 1
« first « previous next › last »