Im currently writing a GPS simulator in
vb.net. I have a text file of GPS NMEA strings (thousands of lines) that I would like to read via StreamReader and display in a textbox or richtextbox. Heres the catch: I want to read the first line, wait one second (using a timer), and then read the second line... and so on.
Example of text in file:
$GPGGA,175417.00,3854.65842,N,09710.88025,W,2,9,1. 0,345.74,M,-29.96,M,5,105*62
$GPGGA,175418.00,3854.65842,N,09710.88025,W,2,9,1. 0,345.73,M,-29.96,M,6,105*69
$GPGGA,175419.00,3854.65842,N,09710.88025,W,2,9,1. 0,345.73,M,-29.96,M,7,105*69
$GPGGA,175420.00,3854.65842,N,09710.88025,W,2,9,1. 0,345.73,M,-29.96,M,8,105*6C
$GPGGA,175421.00,3854.65853,N,09710.88005,W,2,8,1. 1,347.39,M,-29.96,M,3,106*6B
The textbox should miror this.. adding a line every second while retaining the previous line.
Thanks,
James