LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read lines from text-file in specified [ITEM]

Hello,
are there any functions integrated in Labview to read a text-file which looks like this:

[ITEM-NAME_01]
parameter1 = here
parameter2 = 1123
parameter3 = a453

[ITEM-NAME_02]
parameter4 = here
parameter5 = 1123
parameter6 = a453

Can this be done easy, or do i have to manually search the file for the "["-character ?

At the end i want a VI where i pass the file-name and the item-name as input, and as output i want one array with the parameter-names and the other array with the values.
How can this be done?

Thanks for your help



0 Kudos
Message 1 of 3
(2,342 Views)
Hi OnlyOne,

you are talking about Configuration files?

Look in the file palette, sub-palette "configuration files". It's all in there!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,340 Views)
Hi GerdW,
that  was exactly what i was looking for.
Thanks for the help.
0 Kudos
Message 3 of 3
(2,334 Views)