I tried to open file with

window.open("file:///D:/Hello.txt");

The browser does not allow opening a local file this way, probably for security reasons. I want to use the file’s data in the client side. How can I read local file in JavaScript?

11 Answers
11

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *