With a bit of javascript you can make a timed file-loader:
<!DOCTYPE html>
<html>
<head>
<title>File (re)Loader</title>
</head>
<body>
<h1>File (re)Loader</h1>
<h3>Content of [data.txt]</h3>
<p>Reloading in <span id="load-counter">60</span> seconds</p>
<pre id="file-content"></pre>
<script>
var counter = 59;
const loadFile = () =>
{
counter++;
if (counter===60)
{
counter=0;
// Note:
// Quick And Dirty direct call to data.txt.
// Use a server side (php) script call so serve your data.txt content
fetch('data.txt', {cache:"no-store"})
.then(response => response.text())
.then((data) =>
{
document.getElementById('file-content').innerText = data;
});
}
document.getElementById('load-counter').innerText = (60-counter);
}
const startLoader = () =>
{
loadFile();
setInterval(loadFile, 1000);
}
(function (fn)
{
if (document.readyState === "complete" || document.readyState === "interactive")
{
setTimeout(fn, 1);
}
else
{
document.addEventListener("DOMContentLoaded", fn);
}
}(startLoader));
</script>
</body>
</html>