LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get string (specified by line and column) from txt file with labview

Solved!
Go to solution

Hi everyone

How to get string (specified by line and column) from txt file with labview

thx 

 

0 Kudos
Message 1 of 3
(2,864 Views)
Solution
Accepted by topic author nizartunisia
As far as I know, a text file has no columns.  Please be more specific.  Do you mean something like the 5th word on line 4, where words are separated by a space, and lines are separated by a newline character?  You could the Read from Spreadsheet String function and set the delimiter to a space.  This will produce a 2D array of strings.  Then use index array and give the line number and column number.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(2,861 Views)

thx for you,

 

I find solution by using 2 functions. The 1st is "Read from text file" (count = -1 to read all of the text / !!! don't use read line ) and the second is "string subset" where just I have to specify the "offset" and the "length"of string I want to get.

 

Thx all of you.

Nizar.

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