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]
|