Can I use the
; first number
; something else
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.