html

How to read local text file into array list Javascript  #angularjs #reactjs

  • I have a small html file that is supposed to display the contents of a text file onto the screen.
  • Stack Overflow works best with JavaScript enabled
  • Join the Stack Overflow Community
  • Browse other questions tagged javascript html or ask your own question .
  • Stack Overflow is a community of 6.7 million programmers, just like you, helping each other.

I have a small html file that is supposed to display the contents of a text file onto the screen. The text (values.txt) is in the same file as the html file. It appears that when it reads the contents it doesn’t get the values as they don’t appear in the alert.

@ng_real_ninja: How to read local text file into array list Javascript #angularjs #reactjs

I have a small html file that is supposed to display the contents of a text file onto the screen. The text (values.txt) is in the same file as the html file. It appears that when it reads the contents it doesn’t get the values as they don’t appear in the alert.

here is the code

what can I do in order to read a text file into a list / get this code snippet to work?

html

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.