LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read from text file

Hi
I have a problem reading my text file. I try to read this text file using a scan from file.vi because i want to read only a certain number from the text file. I want to use this value i have read from the text file as a number not as a text string. How shold i go about this. my text file is attached below.
 
Please help!!
0 Kudos
Message 1 of 3
(2,335 Views)

Hi netee,

you can use the "read from spreadsheet file" function with "integer type", then you can use the index array function to get your specific value.

Mike

0 Kudos
Message 2 of 3
(2,332 Views)
The Read From Spreadsheet File VI will require you to load the entire text file into memory, and if your text file is really that small, it won't matter, and that's the best way to go. If your text file is large, you may want to consider an alternative. However, you will need to better explain what you're trying to do. What do you mean you "want to read only a certain number from the text file". What number? How do you specify this number? Is it relative to something?
Message 3 of 3
(2,304 Views)