Does it need to be a text file, and will its content change often? In other words - do you need to read specifically that text file every time the game starts?
If not, then it will be easier to create a new array file in the project and manually import all words from the file into it. If you create enough empty cells, you should be able to copy/paste all words at once.
You will still need to request the array file with AJAX.