Ask coding questions

← Back to all posts
Files resetting
FSAlerts

Created some test python code and it works. And I use uptime robot to Keep_Alive.

However, I've noticed if I leave the program running, log out, when I come back at the end of the day - all of my text files are reset to zero.

I suspect this is because I'm using the free account. If I upgrade to Hacker, will my data be safe or will it sill be overwritten?

But I'm reading online that Replit.com is designed to 'destroy' and go back to zero in files (not code) when the repl moves?...

Any guidance is appreciated.
Thanks.

Voters
FSAlerts
Comments
hotnewtop
Coder100
  1. no it's not correlated with free.
  2. files reset if you are not on the repl.
  3. Usually, if you are setting to files, you are probably trying to make persistent data structures, in which case you should use something like replit db or mongo db, etc. (in other words, online database providers)
ch1ck3n

i suspect you are changing the file in the program, so here's my answer:

it's for security and it doesn't matter if you're on hacker or free. you can't fix it

FSAlerts

@ch1ck3n Wow. Thanks. Is there another service like replit where the files live forever?

ch1ck3n

@FSAlerts no but you can try repl db

xfinnbar

@FSAlerts Use Replit DB as it saves between restarts: https://blog.replit.com/database