Load/save cache files - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: Code Support (https://www.save-point.org/forum-20.html) +--- Thread: Load/save cache files (/thread-2907.html) |
Load/save cache files - DerVVulfman - 04-03-2009 Before I show you the routines that save and load data, let me just give you an example of the data to be saved or loaded: Code: class Game_File This is how they make $game_system, $game_temp, and all those others you access throughout the system. * * *
Now, I'll show you a simple system you can use to save data. Code: file = File.open(filename, "wb")
* * *
Finally, the way to load your data. Code: file = File.open(filename, "rb")
|