I am trying to use to select a file locally and read the text in it line by line to interpret it. My program is meant to read a text file and read questions from it to make a test taking program. The file should not be uploaded, and only read locally. It is okay if the solution only works on chrome and firefox.
I have tried looking through many things, but so far what I seem to see is that it is not possible for security reasons, or it is but it doesn't work properly. I
This is my current code: http://pastebin.com/uKvEfvZZ
Use HTML5 file API. It allows you to select and read files locally.
Here is a demo.
html:
js: