View Single Post

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

Hi,
Thank u very much once again.I already did this..
Code:
 
if (text != null)
{
                
                //Console.WriteLine(text); 

                text = reader.ReadLine();
                txtResults.Text = text;
}
But still mine file ends up after mine text has finished. If I will use this code in if
Code:
 
 text = reader.ReadLine();
if (text != null)
{               
                //Console.WriteLine(text); 
                  txtResults.Text = text;
}
then mine program shifts to else after mine code end up. So I am not able to get how to restart mine text file again automatically.
Thanks for yours kind help.
Regards.
Nasir
Reply With Quote