LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file reading error 4

hi,
i wanted to know a method by which i cant know the end of file i am reading.
0 Kudos
Message 1 of 3
(2,825 Views)
If you dig into some of the file read functions, for example Read Lines From File, you'll find a subVI in this case, called Read File+ (string).vi and you'll see how the error out of the Read File function is monitored for End of File. There's several Read File+ VIs that are already done for strings or binary data and can easily be modified for other data types.
0 Kudos
Message 2 of 3
(2,825 Views)
Alternately, if you call the EOF function with the "pos mode" and "pos offset" both unwired, the "offset" output will be the number of bytes in the file.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,825 Views)