LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

count--how many times a string(im searching for that string) will come in an existing text file.(dont count if it is in comments)

create a vi that opens an existing file(text file)  (im using labview version 7)
and count ---howmany times a string(im searching for this string ) will come in that file(dont count if it is in the comments like it is followed by 😉
 
 
take example like 
im searching  for a string named "lab" in a text file
 
if the  file has data like as follows
 
 lab lab lab
lab
gjjhjhjklj
;lab khhjkkjj lab llab                                              (dont count here becasue the line is a comment it is followed by 😉
;       lab
lab  jhjjk kkl  ;ghgggjkj lab
 
now count is 5.(i want count as 5)
 
 
 
send a solution for this problem
0 Kudos
Message 1 of 3
(2,099 Views)
What have you tried so far for this homework? Please post your code.
 
And hope the coffee has been good this morninghappy smiley
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 3
(2,092 Views)
This problem is somewhat related to one of the past coding challenges:
 
 
Maybe you can get some ideas, shouldn't be too hard at all. 😉
0 Kudos
Message 3 of 3
(2,087 Views)