LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I parse *.ini file?

Hi Labview Knights! Where can I find the reference for my understanding the structures in *.ini file? How can I parse *.ini file to get values with Labview as there are sections, Name and value? What if there are same names under different section, so how to get values? What is a *.ini file used for? Only for initisation? also for comparsion with the limits too? Pls take a look at the sample.ini.
0 Kudos
Message 1 of 2
(4,100 Views)
You can use ini files for anything you want, but they are especially useful for storing configuration data.

Fortunately, you don't need to worry about parsing ini files, because all the tools are available in LabVIEW in the "File I/O...configuration file VIs" palette.

To read a section+key, just specify the section and key, and you'll get the value using "read key.vi"..

I have attached a tiny VI that gets all section names, all keys under each section, then lists the value for each. Quite useful!
Message 2 of 2
(4,100 Views)