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 / how do you...

Author
Message
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 16th May 2004 18:46
... save variables in a file and then be able to read them off. ive got 2 variables i want to save - playername$, totalscore#. ive tried putting them into arrays and saving/loading them but it just comes up with 'array name not valid'.



Is there any way of saving and loading variables that arent in arrays?

also when i made the .sav file and opened it in notepad i forgot that i had the 'always open with this program' checked and now all of my .sav files are opened with notepad - is there any way of reversing this?

I should have changed my signature when asked
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 16th May 2004 19:14 Edited at: 16th May 2004 20:31
> ... save variables in a file and then be able to read them
> off. ive got 2 variables i want to save - playername$,
> totalscore#. ive tried putting them into arrays and saving/
> loading them but it just comes up with 'array name not valid'.
...
> also when i made the .sav file and opened it in notepad i
> forgot that i had the 'always open with this program' checked
> and now all of my .sav files are opened with notepad - is
> there any way of reversing this?

Try saving the data as a text file, then notepad becomes a feature and not a liability.

Yes, it can be changed. You need to open My Computer, click on the tools menu, select folder options, click on the file types tab, and find the SAV file extension in the list. You can then edit the settings.



Login to post a reply

Server time is: 2025-05-23 20:03:46
Your offset time is: 2025-05-23 20:03:46