Posts

Showing posts with the label Working with INI file in Delphi

Working with INI files in Delphi

How to use INI files in Delphi to store Application and User settings ? What is INI file? An INI file is a flat text file which stores data in a certain standard format. It is used to store light amounts of data, and is quite often used for storing application settings and other various data. It stores data in Sections, Key and Values format. An INI file can contain a number of unique Sections, and each of those Sections can contain a number of unique Keys with some Value. INI Files often use another file extension other than '.ini' for the developer's personalization of their projects. But INI file have size limit of 64KB. This is especially useful in cross-platform applications. A Section is enclosed with [ and ] (for example, [MySection]). There cannot be more than one section with the same name within an INI file. A Key is defined with an = following its Value. Each Key has its own line, underneath a Section. For example INI file stores data in fol...