LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how many lines in a text file and working with string data


@SteveFeeser wrote:

 

The Read from TextFile Function does have an option to read lines but it does not read one line at a time, like I want to search it.  (I want to search line by line to find the number at the beginning of the line.)  That vi reads however many lines you specify, always starting at the beginning of the file.  So, I did not see how that would help me... 

 


As a general rule (not always, but...) it is far easier to work with things like that in the form of an array.  What you are doing with your while loop is basically the exact same as indexing the array, but with more overhead, and additional programming needed.

 

search lines.png

 

 

0 Kudos
Message 11 of 11
(804 Views)