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!
Printable View
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!
The format is like this:
Just open one on your pc with notepad to check this. :)Quote:
[subheading]
infoname = infovalue
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! :p
Thanks man! It worked out pretty fine! ;-)
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.
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!