02-14-2011 02:50 AM
Hi,
I want to use configuration files to define a test script process. Each [section] would be the test and each key would be a parameter. How can I get the INI file to be read if the number of sections/keys are not known?! The reader does not know how many tests [Sections] are inclosed in the INI file and the number of parameters [Keys] can also vary...
Thanks for any help...
Electrostatic......
Solved! Go to Solution.
02-14-2011 03:03 AM
Use "get section names" and "get key names" as shown in the snippet below
02-14-2011 03:15 AM
I will test this out. Thanks for the quick response.....
02-14-2011 07:17 AM
Ok this example was great to grab all the "Keys" and "Sections" is there an easy way to grab all the associated data with the keys/sections?!
For example it could be formated in the same way as the 2D array which holds the key names. That way the arrays would be 1:1 (like a LUT)
Hope you can help someone
02-14-2011 07:54 AM
Its ok. I figured it out. Just pipe the Keys and Sections and put them in a 2d for loop. It generates the data,
03-07-2011 08:01 AM
Hi,
What about generating configuration files from 2D arrays. Whats the best way to go about it?.
For example if I have a 2D array with unlimited rows (ie. [Test n+1]) and each has 4000 parameters (Keys). How can I create a file from the 2d array?.
Thanks....