LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to search a special string in txt file and return it's position in txt file?

How to search a special string in txt file and return it's position in txt file?
0 Kudos
Message 1 of 3
(2,579 Views)

Have a look at the string/additionnal string functions subpalette. There is a Search/Split sString function that does what you are looking for 

Chilly Charly    (aka CC)
0 Kudos
Message 2 of 3
(2,573 Views)

I just posted a solution for a similar question here:  http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=362699#M362699

 

The top portion can search for the location of a string, while the bottom portion is to locate the position of a character.  Both can search for a character.

The position of the character within the file is displayed in the indicator(s).

 

R

0 Kudos
Message 3 of 3
(2,558 Views)