ini-parser
                                
                                
                                
                                    ini-parser copied to clipboard
                            
                            
                            
                        Split concatenated DuplicateKeys in WriteFile
Hello,
is there a way to make WriteFile split concatenated DuplicateKeys lines into single lines?
Input .ini is something like this:
[SectionX] MyVal=1 MyVal=2 MyVal=3
Reading this into a ConcatenateDuplicatedKeysIniDataParser with AllowDuplicateKeys=true and ConcatenateDuplicateKeys=true will create a key object with
MyVal=1;2;3
and WriteFile will write it to a file like that.
[SectionX] MyVal=1;2;3
I need it to write the original duplicate lines to the .ini again. Any ideas on this?
I'm afraid there is no way to do what you want to do right now.
With AllowDuplicateKeys=true, Myval got 1 not three values?
ljporljp, yes, with AllowDuplicateKeys=true and ConcatenateDuplicateKeys=false there is only 1 value then (the last one in the .ini).
Hello guys, Is there a plan when it will be possible to write duplicates in different lines?
I think it would be really helpful to ensure that the write operation can produce the same that was read before. It would also be helpful to be able to define the ConcatenateSeparator.