Easy INI file manipulation
An easy way to handle INI files by using API. Ini files can be useful when you need to save and load data to and from a file. I tend to use them to save user preferences but can be used for many other things as well. The main advantage over the registry is that you can modify them easily by using a text editor such as notepad. Enjoy :)
AI
สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
ซอร์สโค้ด
<h1>INI FILES</h1> <p>I was inspired to write this piece of code after I saw a post, here on PSC, that asked people to use the registry instead of INI files. This post can be found here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=46726&lngWId=1</p> <p>I can't say whether to use the registry or INI files. I personally prefer INI files because : <ul> <li>they are easier to modify externally by using notepad which is useful for testing the program with different settings</li> <li>are very easy to program (see source code)</li> <li>and when you want to delete your program, you just delete the project folder and the Ini files are deleted as well; so you don't have to search to delete useless entries in the registry</li></ul> </p> <p>I use the registry when I want to share information between different applications. For example I save the path where my program is installed in the registry in case I want to install an extension such as a plug-in or an upgrade, I will know where the program can be found by reading that registry value.</p>
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine