You are here: Re: Extrapolate from NMEA file « PHP Programming Language « IT news, forums, messages
Re: Extrapolate from NMEA file

Posted by Ian B on 11/03/05 17:57

Hi Maggy,

If I understand you correctly, then the following pseudocode might be a
starting point

Ian


////////////////////////////////////

line_count=9 (assuming that you want the first line to count)

Open input file
Open output file

Do while not EOF
Read line from input file
Split line into an array
If col_1 is '$GPGGA'
Add 1 to line_count
If line count >9
write data to output file
set line_count to 0
end if
end if
Loop

At this point, if you want to capture the last record even if it's noth
the tenth one
if line_count <> 0 write data to output files

Close files

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация