Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Loading and Saving Files?

Author
Message
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 9th Jul 2006 02:52
How do I make it to where people can save their game and load it back the next day?

><Jordan Stories Games><
Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 9th Jul 2006 03:28
Well, to stop you asking so many questions, check out the examples that come with DB.

Next,

think about it, what is saving? It's all about storing data within a text file, and reloading it the next time. This file can be called anything, and it doesn't have to be .txt, can be .hello, or .dat.

Try the "Open to write" command to save, and "Open to read" command to load.

SimSmall
21
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 9th Jul 2006 05:40
Quote: ".txt, can be .hello, or .dat."


or even .exe - what fun you can have...
Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 9th Jul 2006 06:01
Haha! I'm gonna try that now.

Login to post a reply

Server time is: 2026-07-07 00:48:45
Your offset time is: 2026-07-07 00:48:45