[Gambas-user] Settings file - preserver comments

Benoît Minisini g4mba5 at gmail.com
Mon Feb 8 20:20:18 CET 2021


Le 08/02/2021 à 19:30, T Lee Davidson a écrit :
> On 2/8/21 11:38 AM, Benoît Minisini wrote:
>> Le 08/02/2021 à 08:41, pf a écrit :
>>> Hi
>>>
>>>
>>> I use a settings file but when i write to it the comments line made 
>>> with ; or #  at the start of the line dissapears on update of any value.
>>>
>>> I would like to keep comments if the settings file is opened in a 
>>> texteditor so the user can get some tips on the values in the file.
>>>
>>>
>>> Regards
>>>
>>> Chris
>>>
>>>
>>
>> No, because the settings file format is internal, and can change at 
>> any moment without notice.
>>
>> The fact that it looks like Windows '*.ini' file is a pure coincidence.
> 
> If comments are not preserved, then why provide for them at all?
> 

One comment is allowed. Otherwise, you should not suppose anything on 
how Settings stores the data.

Maybe I should have been more clear with that...

-- 
Benoît Minisini


More information about the User mailing list