Watch, Follow, &
Connect with Us

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


ID: 20360, Ini-File Wrapper - Easy Peasy (Updated)

by David Carboni Email: Anonymous


Ultra-simple interface to TIniFile object. Single-unit, self-managing instance that provides straightforward Load and Save methods.
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 7.0 244 downloads
Copyright: No significant restrictions


Size: 1,299 bytes
Updated on Sat, 26 Jul 2003 06:12:28 GMT
Originally uploaded on Sat, 26 Jul 2003 05:47:41 GMT
SHA1 Hash: EB94830D552BC2ED4295CB70EE497622B89626EE
MD5 Hash: B808834491C128416C3089A0C2414F07

    Explore the files in this upload

Description
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 http://carboni.co.uk/david/software/

   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: ETNACDC04