03-09-2011 07:17 AM
Actually if you look in the file in question you will see that any line that doesn't match the section or key pattern will be simply added verbatim to the internal storage as a comment line. The only exception are empty lines which are dropped.
03-10-2011 03:27 PM
Good posts everyone I had the same issue when I converted a project from LV 8.6 to 2010. A bit more details:
Writing an INI file using the Config LV2010 produces the following output
/Some Comment Here/
[Test]
Number = 3
/Some Comment 2/
Notice (2) things:
1.)The comment is kept before the Section name.
2.) The comment is kept after the Section name and NOT given the dreaded ' = "" '
Here is the equivalent output using the LV 8.6 Configuration VIs:
[Test]
Number=3
/Some Comment 2/=""
I had numerous issues with the configuration VIs adding ' =""' to all items that were not keys in the file, this was especially troublesome in TestStand when I had to use Tab Deliminated items to separate for the property loader.
Thanks,
PH