Is there a way to make my changes to file save during run time. I am making a game. It uses an sqlite file for saving your account. I found that the replit db was rather limited, but now regular users can’t crate account and save across runs because it doesn’t even save. I can’t even save it creating a file after the stop button is pressed. Is there anyway to get about this issue?
Where are you checking these files? It sounds like expected behavior. Is this what you’re doing?:
Switch to an account without edit permissions
Running the program, which adds things to the database
Stopping the program
Checking the database files
If so, then this is just how Replit works. Unless you make your Repl a website (which requires modifying your code a lot) or using Repl Identity (which is insecure because Replit is doing nothing about it), there is no way to have a secure DB. 
But why? When you run a (non-website) Repl you don’t own from the cover page, Replit will automatically fork the Repl (this is known as a ghost fork). And when a Repl is forked by a user who doesn’t have edit permissions, all Secrets’ values are lost and any changes to files do not save to the original Repl. ↩︎