LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem reading txt file

Hi
I have a shell cluster where I type different data for my file. Then I save this to txt file. The problem is when I want to open the file and use the data for the same shell cluster, which is now an indicator. Can someone help me with this??

0 Kudos
Message 1 of 5
(2,836 Views)
You need to replace the Initialize Array function (which creates an empty array the way you have it connected) with the Spreadsheet String to Array function. Wire a Line Feed constant to the delimiter input and "%s" to the format string input.

Lynn
0 Kudos
Message 2 of 5
(2,831 Views)
Thank you on your fast reply. How do I connect the array terminal to the shell cluster indicator??
I am new at this..
Boris
0 Kudos
Message 3 of 5
(2,821 Views)

Hi Boris,

see the attached example. It is better if you insert your input data into the save event, because you then save the newest values.

Mike

0 Kudos
Message 4 of 5
(2,807 Views)
Thank you Mike  !!!!
Boris
0 Kudos
Message 5 of 5
(2,804 Views)