Ask coding questions

← Back to all posts
Why is my json data not saving?
h
GandalfyDev (5)

Basically if I use my program to insert data into my json files, the next day it is gone? Why is this?

Comments
hotnewtop
GandalfyDev (5)

Ahh, I see. Is there a module to fix this?

NoelB33 (351)

On repl.it, if your program changes a file, it won’t persist for the next time you run it. You can use an external database such as mongoDB, however.
There is a database inside your repl called repldb, but it’s only for explorers (beta testers) only right now.