I am attempting to put data from a CSV file and put it into a String variable in an HTML file. The HTML and CSV file are under the same local directory on my computer. In Java and C++, I know it is possible to read and write to a text file. So, when using JavaScript, PHP, jQuery, or anything else, is it possible to set the string in my HTML file equal to the data from a local CSV file? I need a way to read the CSV text into a Javascript variable string.
I have a program currently that parses CSV formatted text, but I need the text to be pulled from a CSV file. I have read numerous posts saying that this is not possible because of security reasons - is this the case? All of the answers that I have seen require the user to select the file the want to pull from. I just want it to automatically be pulled from a specific CSV file always.