View Single Post

  #12 (permalink)  
Old 05-01-2008
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Re: problem while read NMEA.txt file

when the return value is null then you are at the end of the file. in a timer tick you can check at regularly intervals if someone has appended a line to the file. you also can do this with ReadLine, when it return null then nothing is appended, when it returns data then something is appended.

note that 'something' is not necessarily a complete line, it can be part of a line also, so you have to check for that also, and if the line is not complete then wait a moment and read again.
Reply With Quote