LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read line by line from text file using LabWindows/CVI 5.0


@RobertoBozzolo wrote:

 

I suggest you to use... ReadLine (): using it in a loop till EOF permits you to read the file line-by-line without problems.


Sorry to butt in, but how do you test for EOF on a line-by-line basis?  I looked into the SetFilePtr to see if there was a GetFilePtr in order to know where in the file the ReadLine has placed it.

 

This seems like an easy thing, but I can't guess.  

0 Kudos
Message 11 of 12
(567 Views)

ReadLine returns -2 when it finds EOF



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 12 of 12
(554 Views)