So a friend of mine said they would help me with a problem if I could find out how to write to a file using JavaScript, the kind in HTML5.
JS and HTML5 aren’t exacly my area of expertise, so here I am.
I haven’t tried anything, other than a quick Google search.
Also, by writing to a file, I mean editing an existing text file.
2
Answers
Certainly you can write to a file using js. Its pretty basic to implement.
To write to a file using js. You probably might have to install node.js to your computer if you don’t already have one.
You can find an installation instruction from youtube. Search "How to install node.js and npm"
Afterwards,
you can write your code in a standard file as follows:-
Run the file using the console
Let me know if you have any questions?
Would something like this work? I think we need more info on what you are trying to do. There is not a lot of detail on what you are trying to do.