Saving a string to a txt document
I have tired things like
Indeed, you cannot create a txt file using front end JS, and for good reason too! Imagine if websites could write files to your system... heh.
If you want to write to files, you can use Node.js, like mentioned before. Alternatively, you can use Localstorage, which will save it in the browser itself, but you're limited by size (and obviously can only be accessed when using the same computer + browser).
But If you want to switch to Nodejs, you can store files on the server using https://www.w3schools.com/nodejs/nodejs_filesystem.asp