Mike,
I have extensive experience with this exact function.
Here is the best way to do it:
You know ahead of time what your array size is, because you are inputting the keys for your ini file that you are reading from, so, do an array size on the array of keys (you should create an array for your keys, and do your read in a for loop) and use that size to initialize an array of strings (or channel names?). Open your ini file, then, input your two arrays into the for loop. Read out the keys, and use the Replace Array Element function to input your values into the array at the appropriate index (index input wired to index of loop.) Then, after the loop, close your config file.
I hope this helps.
For additional functionality, I have created a tem
plate for reading from an ini file and storing the data in an unitialized shift register. This is very good design for storing configuration data for such things as manufacturing testing.
I will place a blank template for this in the designs discussion topic, so you can see exactly what I do with this.
Good luck