Some Javascript to do this function in an HTML file?
>>60856430let message = "Message";
let i = 1;
let a = document.createElement("a");
a.download = i + ".txt";
a.href = URL.createObjectURL(new Blob([message], {type: "text"}));
a.click();
location.reload();
You can't read a file in automatically.