Okay I have made a mode in my game in which the player is able to make a level himself, of course this new data in the game needs to be saved somewhere. So I learnt how to create files and I am using this knowledge in my game. But people reported a small bug that happens when you create your own level, and then quit without letting it save properly. The game doesnt create all the files needed and then when the person tries to open up the game again it crashes (not only the game but sometimes also the computer!) in order to fix that I would like to know how to make it create all the needed files even if it is closed. Is that even possible or do I have to live with the bug? Can someone please tell me how to make the game continue to create the needed files even though the game itself is closed?

