Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 18814, Ini-File Wrapper - Easy Peasy

by David Carboni Email: Anonymous

Ultra-simple interface to TIniFile object. Single-unit, self-managing instance that provides straightforward Load and Save methods. (D6)
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 6.0  to 6.0 283 downloads
Copyright: Commercial use requires permission

Size: 1,053 bytes
Updated on Sat, 07 Sep 2002 08:58:13 GMT
Originally uploaded on Sat, 07 Sep 2002 08:45:45 GMT
SHA1 Hash: E710F2435110FC90E65C9E096A8B96CF45B3AC00
MD5 Hash: 80C3A54033546BC6E1A1DA40B16B7AA4

    Explore the files in this upload

This unit is designed to provide ultra-simple, ultra-rad .ini file use.

Add the unit to your uses clause and call:

- MyVar:=IniFile.Load('MyKey', MyDefault);
- IniFile.Save('MyKey', MyVar);

No initialisation required: The unit contains a TIniFile descendant class and one self-managing instace, which is auto-created on first use and auto-destroy on app shutdown - so no initialisation required, just call the methods.

Self-Managing: When you first access the instance, it is automatically created, so no memory is used until it is actually needed. When the app shuts down, it is destroyed (if necessary) in the finalization, but can also be destroyed manually if required.

Advanced methods: Since the class inherits from TIniFile, you can get at the more advanced methods if you want.

Overloading: Both .Load and .Save are overloaded to handle String, Int, Boolean and Real types. If you need more, it should be easy to modify by copying existing code.

I created this to get .ini files up and running as hasstle-free as possible. Hope its of use.

For more information, see

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03