LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading a simple text file..

Hi,

can somebody point me to an example please?

I have a file like below. I want to read LINE-by-LINE and do some
operation on every line and then next...

100000;32755;-31412;-30342;28086
100000;32755;-31389;-30324;28041

TIA
0 Kudos
Message 1 of 2
(2,735 Views)
I think you might be better off reading the entire file at once with Read From spreadsheet File and then manipulating the resulting 2D array, but if you want to do it line by line then a good place to start is the Read Lines From File function on the File I/O palette. Inside of this is a case structure and case 2 reads one line at a time for x number of lines or until EOF is found.
Message 2 of 2
(2,735 Views)