If you're developing in Windows 95 or newer, forget INI files and use the Windows Registry instead. Although it's a little more complex from a programming point of view, it's the correct way of storing the information that you'd previously keep in an INI file.
In Windows 3.0 - 3.11 you can use functions like ReadPrivateProfileString and WritePrivateProfileString to read and write INI files. They still exist in Windows 95+ for compatibility, but bear in mind that INI files have a maximum size of 32k whereas the registry does not.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.