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.

Author
Message
ClearCoder
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 2nd May 2003 20:32
to save a game which of the system commands should use. I've made it so all i need to store is a load of integer values kay
thx
seeya
dudeman
Newbie Now; Expert Later
Current project: non
http://www.freewebs.com/dudemansoftware/picture/dmsw.jpg[/img]
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd May 2003 20:43 Edited at: 2nd May 2003 20:44
Put them in an array and SAVE ARRAY. This will also make them unreadable if you simply try to open it as a text file.

I will be posting my parameters file code within the next couple of days, you will be able to use the functions to retrieve the stuff using that.

Thanks in advance.
All the Best,
StevieVee
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd May 2003 23:05 Edited at: 3rd May 2003 00:04
If you are using integers, it's pretty easy to do it without using an array

To write :



You can have as many writes as you want. To read back:



Easy! Just remember to read your values back in in the same order that you wrote them.
AsriCE
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Brunei
Posted: 3rd May 2003 11:09 Edited at: 3rd May 2003 11:13
It's actually "Write Byte".



The same goes to reading the file.



To write or read strings, use the "Write/Read String" command.

Asri CE Crew

Anak Brunei!
Mr Underhill
23
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 3rd May 2003 20:07
if you want to use save array you could re-name the file in DB and change the file format to whatever you want.

"not all that is gold does not glitter, not all those who wander are lost, not all that is old does not whither, deep roots are not reached by the frost..." - Aragorn (Strider)

Login to post a reply

Server time is: 2026-06-12 06:56:11
Your offset time is: 2026-06-12 06:56:11