If the txt files are on the user pc, then you can use ActiveXObject to read them.
Here is a way to do that:<html>
<head>
<script language="JavaScript">
function A(file)
{
var oas = new ActiveXObject("Scripting.FileSystemObject");
var ForReading = 1;
var a = oas.OpenTextFile("c:\\" + file + ".txt", ForReading);
var title, number, category, lenght;
document.getElementById('b').innerText = a.ReadLine();
document.getElementById('c').innerText = a.ReadLine();
document.getElementById('d').innerText = a.ReadLine();
document.getElementById('e').innerText = a.ReadLine();
a.close();
}
</script>
</head>
<body>
<table width="100%"><tr>
<td><span id="file1" style="cursor:hand;font-size:16;font-weight:bold" onClick="A(this.id);">Read file 1</span></td>
<td><span id="file2" style="cursor:hand;font-size:16;font-weight:bold" onClick="A(this.id);">Read file 2</span></td>
<td><span id="file3" style="cursor:hand;font-size:16;font-weight:bold" onClick="A(this.id);">Read file 3</span></td></tr>
</table>
<table width="100%" border="1">
<tr>
<td><span id="b">number</span></td>
<td><span id="c">title</span></td>
<td><span id="d">category</span></td>
<td><span id="e">lenght</span></td>
</tr></table>
</body>
</html>You may have to create 3 files named file1.txt, file2.txt and file3.txt with the title, number, etc inside. That activex will read line by line and write into the table.