I'm looking for a simple way to read textfiles with hashtags in the name. This is my code:
function readTextFile(file)
{
var rawFile = new XMLHttpRequest();
rawFile.open("GET", file, false);
rawFile.onreadystatechange = function ()
{
if(rawFile.readyState === 4)
{
if(rawFile.status === 200 || rawFile.status == 0)
alert(rawFile.responseText);
}
}
rawFile.send(null);
}
var file = "#name.log";
readTextFile(file);