MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




problem while read NMEA.txt file

This is a discussion on problem while read NMEA.txt file within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, Thank u very much once again.I already did this.. Code: if (text != null) { //Console.WriteLine(text); text = reader....


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 05-01-2008
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 05-01-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/problem-while-read-nmea-txt-file-7566.html

Posted By For Type Date
Programming MapPoint in .NET - MP2K Magazine This thread Refback 04-30-2008 03:16 PM
The Magazine for MapPoint - MP2K Magazine This thread Refback 04-26-2008 05:03 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Problem to open Excel file Chiara MapPoint 2006/2009 Discussion 2 07-19-2006 06:54 AM
NMEA Standard Anonymous MapPoint 2006/2009 Discussion 2 06-17-2004 01:54 PM
Correctly Mapping NMEA Data Anonymous MapPoint 2006/2009 Discussion 1 03-18-2004 01:28 PM
nmea sentence Anonymous MapPoint 2006/2009 Discussion 0 03-09-2004 06:36 AM
Import NMEA-data from a file into mappoint Anonymous MapPoint 2006/2009 Discussion 2 11-19-2003 12:17 PM


All times are GMT -5. The time now is 01:23 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

French Alps Ski Holidays
For French Alps ski holidays to remember visit Holiday Hypermarket. Booking is great value and simple. Pick a holiday to suit you today.

Business Travel Agent
Leading Business Travel Agent. Personal service is at the heart of our business. Talk to one of our travel agents today.

Cuba Holidays
After years of neglect by the western world, Cuba is coming back onto the holiday scene. Cuba Holidays are a unique and enjoyable experience. Book at dealchecker.co.uk.

Holidays in Cyprus
Holidays in Cyprus are enriched by the abundance of churches, ruins and natural wonders. Book a holiday with us today!

Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.

All inclusive holidays
To plan all inclusive holidays, use Travel.co.uk to explore all the possibilities.

Cheap holidays to Portugal
Enjoy a spectacular country at a fraction of the cost. Find information on cheap holidays to Portugal at On The Beach.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47