Description: |
- when updating an ini file, comments, which are placed at the very top of the inifile are eventually placed elsewhere after update.
- a comment immediately following the last keyword in a section is dropped, regardless if it begins in column 1.
- The order of sections changes and there is no way to determine the original order.
- comments, which not begin in column one are entirely lost. I think in windows, leading blanks are ignored for comments (I'm not 100% sure, though).
INI files are human readable material, in which especially comments (and there position!) are very importand, as so does the order of entries in general.
There is a small chance that only my code is wrong. I would be very sorry if this is the case...
The code is the first try of a tool that updates an existing ini (old.ini) with new entries (specified in man.ini), and writes the result to new.ini.
|