Windows INI API support for:
- Comments on the line : yes (using a colon
; ) - Tracking Comments: No
The authoritative source is the Windows API function, which reads values ββfrom INI files.
Retrieves a string from the specified section in the initialization file.
The reason the "full comment line" works is because the requested value does not exist. For example, when analyzing the following contents of an ini file:
[Application] UseLiveData=1 ;coke=zero pepsi=diet ;gag #stackoverflow=splotchy
Reading values:
UseLiveData : 1coke : no;coke : nopepsi : diet ;gagstackoverflow : no#stackoverflow : splotchy
Refresh . I used to think that the sign of the number (#) was a symbol of a pseudo-command. The reason that # is used to hide stackoverflow is because the name stackoverflow no longer exists. And it turns out that the semicolon ( ; ) is the comment line.
But support for trailing comments is not supported.
Ian Boyd Oct 23 '13 at 18:55 2013-10-23 18:55
source share