How can I read and write to .txt files with Javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

26th Sep 2018, 9:56 PM
couscous
7 Answers
+ 1
You should to learn Node.js
27th Sep 2018, 9:57 AM
Timur Sharipow
Timur Sharipow - avatar
0
You cannot do it in normal web page js scripting for security reasons
26th Sep 2018, 11:04 PM
KrOW
KrOW - avatar
0
So what would the alternative be?
27th Sep 2018, 12:41 AM
couscous
27th Sep 2018, 1:19 AM
🤖 Basile Laderchi
0
You can also check out the FileSystem API: https://www.html5rocks.com/en/tutorials/file/filesystem/
27th Sep 2018, 1:22 AM
🤖 Basile Laderchi
0
Je te conseil d'installer Visual Studio Code 😉
27th Sep 2018, 3:51 PM
Joshua Marchal
Joshua Marchal - avatar
0
Joshua Marchal I am sorry but I don't speak french. Could you please write in english?
27th Sep 2018, 9:57 PM
couscous