Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Files resetting

FSAlerts
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.

1 year ago

Voters

Comments

TopNew
1
ChristinaSchw
ChristinaSchw

Constants are a https://chinesebuffetnearmenow.net/ special type of variable. Once declared, the value cannot be changed (unless you change the value when initializing it). In JS you use the const keyword: const pi = 3.14159

6 months ago
1
Coder100
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)
1 year ago
1
ch1ck3n
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

1 year ago
1
FSAlerts
FSAlerts

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

1 year ago
1
ch1ck3n
ch1ck3n

@FSAlerts
no but you can try repl db

1 year ago
1
xfinnbar
xfinnbar

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

1 year ago
Load more