Txt file js
How do you edit text files using js not node js but js
To further elaborate on what @EpicGamer007 said:
If browser JS had access to the local file system, that would mean anyone could make a website to simply delete all of your files in one go, all without user input. Not good.
Instead, if you were to use Node.js, that works in the application scope rather than in the internet scope. Thus, there'd be no danger in allowing access to the local file system.
What exactly are you looking to achieve by editing a file on the local system?