I would like to read txt file and create dynamic html table, below coding. But It shows "Access is denied". It only allowed me to load the "test.txt" in local server. But I would like to store the test.txt in another file server. Pls advise. Many Thanks.

<html>
<head>
<title>Read File</title>
</head>

<body>
<script>
function display_file()
{
var httpRequest = new XMLHttpRequest();
httpRequest.open("GET", "file:\\FileServer/temp/Test.txt", true);

httpRequest.send(null);
httpRequest.onreadystatechange = function()
{

if(this.readyState == 4 && this.status == 200)
{
var fileContent = this.responseText;
var fileArray = fileContent.split('\n');
var n = fileArray.length;

var table = '<TABLE WIDTH="100%" CELLSPACING=0><TR>';

for (var i=0; i<fileArray.length; i++) {
var rowArray = fileArray[i].split(',');
var row = '';
for (var j=0; j<rowArray.length; j++) {
row += '<TD><FONT SIZE=2> <P>' + rowArray[j] + '</FONT></TD>';
}
table += '<TR VALIGN=TOP>' + row + '</TR>';
}
table += '</table>';
document.getElementById('p1').innerHTML = table;
}
}
</script>
<body onload="display_file()" /><br />
<p id="p1"></p>
</body>
</html>