|
-
Sep 9th, 2002, 04:46 AM
#1
Thread Starter
Hyperactive Member
INI Files
Hello!
I am new to INI files and just want to know : How can i create/load ini files ?
And also whats the format of INI files!
Thanks!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 9th, 2002, 04:51 AM
#2
The format is like this:
[subheading]
infoname = infovalue
Just open one on your pc with notepad to check this.
-
Sep 9th, 2002, 04:52 AM
#3
To read & write to an ini file, you'll need to use the API.
Check out :
WritePrivateProfileString
GetPrivateProfileInt
calls either by searching this site for sample code, or by looking at www.allapi.net!
-
Sep 9th, 2002, 06:53 AM
#4
Thread Starter
Hyperactive Member
Thanks man! It worked out pretty fine! ;-)
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 9th, 2002, 08:47 AM
#5
Hyperactive Member
But the use of ini files is deprecated; we're 'supposed' to use the registry. But if you're superstitious like me and don't like dabbling in the registry, why not use ini files. Only problem is that they can be deleted my mistook I guess.
-
Sep 9th, 2002, 09:22 AM
#6
Thread Starter
Hyperactive Member
Thanks for the suggestions! I am not saving the options etc. actually i want to use INI file format as my file format!
So i thought that INI files will be easy do do...!!
Thanks!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|