+ 1
How can I read and write to .txt files with Javascript?
I would like to save user input to a .txt file, but I can't find a good solution. Maybe you guys have an idea... https://code.sololearn.com/WycgpIjV54dk/?ref=app
7 Réponses
+ 1
You should to learn Node.js
0
You cannot do it in normal web page js scripting for security reasons
0
So what would the alternative be?
0
For reading you could use this: https://www.html5rocks.com/en/tutorials/file/dndfiles/
0
You can also check out the FileSystem API: https://www.html5rocks.com/en/tutorials/file/filesystem/
0
Je te conseil d'installer Visual Studio Code 😉
0
Joshua Marchal I am sorry but I don't speak french. Could you please write in english?