function downloadFile () {
const link = document.createElement("a");
const content = document.querySelector("textarea").value; // burası dosyanın içeriği
const file = new Blob([content], { type: 'text/plain' });
link.href = URL.createObjectURL(file);
link.download = "indir.txt";
link.click();
URL.revokeObjectURL(link.href);
};