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 / write,read??????

Author
Message
pagio
23
Years of Service
User Offline
Joined: 8th Jan 2003
Location: - Please Select -
Posted: 9th Mar 2003 01:58
i want to make a save system i start with the simplest
i want to r=2 save it to a file then read it and when i
write print r i want the result to be 2 what commands i sould use?a simple save system is that idea good?
Dont forget the retro games
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Mar 2003 02:05
simplest form eh?

how about



et voila your first save file ... your momma must be proud

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Mar 2003 02:11
really its not hard you just have to remember what each of the read/write data types do

byte = 0 - 255 (1byte) byte
word = 0 - 65535 (2byte) word
file = 0 - 2147483648 (4byte) long-word
long = -2147483648 - 2147483648 (4byte) dword/long
float = 11.3e (4byte) float
string = (variable byte) ascii string (upto 256 characters)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 9th Mar 2003 02:18
double float..

xxxpetratxxx
B. R. W
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Mar 2003 06:58
what the hell are you on about a double float for?
DB barely supports real dwords and float

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?

Login to post a reply

Server time is: 2026-06-10 10:41:32
Your offset time is: 2026-06-10 10:41:32