View Single Post

  #5 (permalink)  
Old 04-28-2008
nasirgul nasirgul is offline
Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 37
Re: problem while read NMEA.txt file

Hello,
many thanks for yours reply. Well I got control on it. what I did as in public
Code:
 
protected FileInfo theSourceFile = null;
protected StreamReader reader = null;
protected string text = " "; // assigned to allow first line to be read below
then in timer i fixed this
Code:
 private void timer1_Tick(object sender, EventArgs e)
        {
            if (text != null)
            {
                text = reader.ReadLine();
                //Console.WriteLine(text);
                txtResults.Text = text;
                
            }
Now it keep on updating mine NMEA text file and when the file ends it restart it again.
Well yours question I am not going to write any file just using text file and mine software will act as simulator which keep on reading from the file to get GPGGA data and extract Lat & Lon and show it on map or you can say act as dummy don t need of any hardware.
Now I will try to extract GPGGA data from the updating file and get link with map.
Nasir
Reply With Quote