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 / .dat files

Author
Message
MKII
22
Years of Service
User Offline
Joined: 28th May 2004
Location: in a nutshell
Posted: 9th Nov 2005 04:22
ok guys this might have been asked before but i couldnt find it.
Im trying to make a class homework schudler(yeah i know its misspelled) and i was writeing strings to a .dat file but dont know how to recall it and print the strings. I hope this is enough info to go on if you need the code ill put it up later im on my moms laptop on now sorry.

Btw i like the new forum look


MKII PRODUCTIONS Current Projects The perirodic table and the 3d planetarium @home
master programmer
21
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 9th Nov 2005 07:28 Edited at: 9th Nov 2005 07:29
Possibly something similiar to this (but you may want to use some sort of array)


I hope that is along the lines of what you wanted

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Nov 2005 08:03
Quote: "ok guys this might have been asked before but i couldnt find it. Im trying to make a class homework schudler(yeah i know its misspelled) and i was writeing strings to a .dat file but dont know how to recall it and print the strings. I hope this is enough info to go on if you need the code ill put it up later im on my moms laptop on now sorry."


To read the data all you have to do is copy the code that you used to write the data with and change all the "write"'s in the copied code to "read".
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 9th Nov 2005 15:37
Quote: "save string 1,test$"


Ahem:


Immunity and Annihalation makes Immunihalation...
blanky
21
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 9th Nov 2005 17:23
Ooh, bonus point to Sven B for noticing that.

*works out scores*
MKII
22
Years of Service
User Offline
Joined: 28th May 2004
Location: in a nutshell
Posted: 9th Nov 2005 22:37
thanks guys ill test that as soon as i get on my pc


MKII PRODUCTIONS Current Projects The perirodic table and the 3d planetarium @home
master programmer
21
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 10th Nov 2005 07:19
That's what I meant



Login to post a reply

Server time is: 2026-07-08 03:03:24
Your offset time is: 2026-07-08 03:03:24