? worth +4 pts (SaveSetting/Ini)

Hello,

I'm making a program and i need to save the type of game (Standard/Modify) in a file as well as a Top Score List including Name/Score/Time

I've been trying to create a ini file but it doesn't seem to work...I alos lookep up the "SaveSetting" but it can't return text

Any suggestions?
lutharAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lutharAuthor Commented:
I will add more points as soon as my friend signs up (in the nxt 24 hr :D )
0
SiM99Commented:
SaveSetting and GetSetting are the VB INI File routines....

If you're not sure how to use them, you can look on www.planet-source-code.com, this has a lot of INI accessing code :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lutharAuthor Commented:
Thanks for the info but i think i'll go with the Open/Line Input/Close

Looks kind of easyer but is it better then using a ini file?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

KDivadCommented:
Better or not is usually just your own preference. If you find file I/O to be easier than using standard ini access routines, the go for it.
0
SiM99Commented:
That depends on what you want the user to be able to change in the file.
If your program is something like WinAmp, and you're making a skin setup file.. then the setup file will need to be readable.

This could be done in either file format (ini or your own design), but the INI file is universally understandable, it can be interpreted by most prople who will want to make skins...


If the file will not need to be read/modified by a user, then you're probably better off using the VB commands (Line Input/Output etc.) as this will be less readable and the user will not be as tempted to modify the file.
0
lutharAuthor Commented:
Ah ok..It's probably the second solution..

Is it possible to know if a file has been modified without using my program? I was thinking about something like a code generated by the program depending on the date/time that would be put in the file and if that file was modified in any other way it would tell me.

Is that possible?
0
SiM99Commented:
You're right there, you would probably have to use a timestamp or a date/time in some way..

The best one would be to get the file properties (like Windows uses in detail view, or when you right click and select Properties), though I am not sure how this is done..

Arent we straying from the origional question ?

"I've been trying to create a ini file but it doesn't seem to work...I alos lookep up the "SaveSetting" but it can't return text"

I told you about GetSetting, and KDivad and me have gave comments about using files other than INI files..


If you're storing program settings which wont need to be moved, why not use the registry ?
(You can't copy the settings from one computers registry to another computers registry - without knowing exactly what you;re doing :)


A source for any code you'll want is www.planet-source-code.com...
0
lutharAuthor Commented:
Yup you did give some good advice but i don't see any problems with adding comments to learn a lil bit more...

Anyway since i got the pts I've increased this question to 20pts and giving to you the points :)
0
SiM99Commented:
No problem, i was just making a note ....

hope you found what you needed on Planet Source Code :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.