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.

Newcomers DBPro Corner / What is the best way?

Author
Message
Redostrike
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: Belgium
Posted: 4th Sep 2003 20:11
I want to call some numbers. lets say 100 numbers. (they are diffrent like 5222,447,105,ect.) But what is the best way first save them in a array and then load them back in.

Or save it in a data file and then load it back?(don't know the commands for the last one though.)

Only heroes live forever.
Beatboxing Rulllllllllllzzzzzzzzzzzzz
www.redostrike-yugioh.tk
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th Sep 2003 20:20
If you have 100 numbers it would be sensible to handle them in an array. If all you want to do is save the numbers to a file and load them again the next time the programs starts then save/load array would be the easiest method.

You could save them to a file with the write long command. Then read them back in with read long and use the data to populate the array. Doing this would teach you how to do it.

The first method is the simplest and I don't know of a reason not to use it.

Login to post a reply

Server time is: 2024-09-20 21:32:46
Your offset time is: 2024-09-20 21:32:46