Spaz made a good suggestion, but let me expand. The error you get tells you that you've reached (or exceeded) the EOF. If you simply
check for that error code (4) you can handle the case gracefully. Many times, I'll just set up to read a file line by line (or chunck by chunck) until I get that error. My buddy Mike Porter always likes to teach folks that errors are your friends.
If you have some clear specifications for your whole application, consider hiring an Alliance Member (like us). You will end up with a most professional example of LabVIEW code to learn from and tweak as you like.
Alliance Members are here to help. We do this stuff every day.
Daniel L. Press
PrimeTest Corp.
www.primetest.com