LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to convert FORTRAN program to LABVIEW?

I want to counr number of lines in file
0 Kudos
Message 1 of 2
(2,637 Views)
There are two methods of counting the number of lines in a file.

1. Open the file and use "Read lines from file.vi" in a while loop until EOF is reached. The iteration count is the number of lines.

2. Read in the file and use the string search functions in a while loop to search the string for the EOL character.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 2
(2,637 Views)