LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string to array

Hi all

 

I have txt file the include some number as string

 

4
2
6
1
5
7
8
3
0
9

 

who can I gather these number to Integer array

 

 

attach txt file the include the numbers

 

Thanks

0 Kudos
Message 1 of 4
(2,554 Views)

Read it as a string, then use "spreadsheet string to array with a type=1D I32 array, delimiter=newline, and format=%d.

 

You can also use "read from spreadsheet file, select integer, set transpose=true, and get only the first row (which will be the first column, since you are transposing).

 

Message 2 of 4
(2,551 Views)

This might solve your purpose.

 

Thanks

Pankaj

0 Kudos
Message 3 of 4
(2,545 Views)

thanks a lot

0 Kudos
Message 4 of 4
(2,536 Views)