Franz Franz - 3 years ago 343
Ini Question

Write INI files with comment lines using TiniFile class

Can I use the

class from Delphi in any way to write comments to my INI files ?

; first number
; something else

In the examples (EXAMPLE) I found on the web there are sometimes nice comment lines added, but not shown how to create, read , write these lines ....

Answer Source

The TIniFile class is a loose wrapper around the Windows API functions the provide INI file services. That API does not support writing comments and so TIniFile cannot do so either.

If you want to emit files with comments, you will have to find a different INI file library, or roll your own.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download