Use the blob.text () Function to Read Text Files in JavaScript. In this application add a new HTML page and add the following HTML markup in it. But even if this works, you have to be very careful with plain text files. It returns a promise with the text. Both