ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read TXT format file

hello

I would lilke to know if there's a way to read data saved in a txt file into a 2D array, I know i can read the txt file into a string, but i need the data that is in it accommodated into a 2D array.

 

attached is the .txt file that i need to read.

 

thanks all!

0 Kudos
Message 1 of 3
(2,839 Views)

That looks like a CSV file to me. (Comma Seperated Values)

 

Use the Read Delimited Spreadsheet vi and set the delimiter to a comma.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 3
(2,829 Views)

yes it works, so simple

 

thanks for taking time answering

 

 

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