LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading single lines from a file

Hi there!
I am having great difficulty trying to work this out.
I know this is simple, but i have never done much with file reading thus i am finding it a little bit hard to grasp.

What i need to do is read in the file attached (minus header) line by line and then put each field of data into
its a number box.
I should be able to search the string to pull out the tabs to get the data into the right places.
What i am having difficulty with is getting the file to read in a line at a time.

It would also be helpful for it to search for the iteration count on the left hand side of the file.
Is there any easy way of doing this??

Thank

Pete
0 Kudos
Message 1 of 2
(2,817 Views)
hi

execute "Read From Spreadsheet File.vi" or "Read Lines From File.vi" from the File I/O palette and see what happens. or use the "Read Characters From File.vi" and then the "Spreadsheet String to Array" function from the String palette. to remove the header just remove the first row of the Array you get from "Read From Spreadsheet File.vi" or "Spreadsheet String to Array".

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 2
(2,814 Views)