+ 3
I want to write external file using javascript like php is it possible? see the link below for an example
5 ответов
+ 3
Avirur Rahman You’d have to use Node.js to write to a local file, as because JS is executed on the client’s machine there isn’t file reading/writing. However, in normal JavaScript, you could save it into a Blob() for the user to download or for it to download automatically.
+ 2
Easy: just change the file extension to .js and then you can write your JS code in there. 😁
+ 2
Rowsej No, I mean like creating a CRUD but without a database, the data is stored in a .txt file, can do it using php but I want to do it using javascript is it possible?
+ 2
Rowsej thanks, I'll try it