How can we copy a content of text file from project file path to a string variable in javascript.
I used below code but it gives "Access Denied" error.
var sHTML = "";
var rawFile = new XMLHttpRequest();
rawFile.open("GET", "file://~/Templates/NewGridTemplate.txt", true);
sHTML = rawFile.responseText;