English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm making a Dice Roller/ Character Generator for D20 Games. I need to see if there is way to create a save feature!

2006-10-31 00:56:10 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Generally, a "save" write the current variables to a file so they can be retrieved later. Not sure what you want to save in a dice rolling program...

But, write a routine that opens a file for inut. Save to the file whatever variables you need to "save". Close the File. Then write a routine to open the file and retreive that information back into the variables. Create a save and load button/menu option/etc. to run the rountines.

2006-10-31 01:02:33 · answer #1 · answered by dewcoons 7 · 0 0

Yes, add a save option to the menu, then in the event handler call your save function. Of course, you will need to write that yourself - it's called programming you know.

Rawlyn.

2006-10-31 09:08:31 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers