Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 17th, 2004, 01:08 PM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JAtkinson
Default StreamReader Loop [Resolved]

http://p2p.wrox.com/topic.asp?TOPIC_ID=12488

I think I posted this in the wrong forum (VB.net)
sorry for the double post

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 (multiline) or RTB should miror this.. adding a line every second while retaining the previous line.

Thanks,
James





Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous reading to console+StreamReader aashish23 C# 1 September 5th, 2007 04:16 AM
StreamReader.ReadToEnd Surre ASP.NET 1.0 and 1.1 Professional 0 March 30th, 2006 07:00 AM
C#: EOF using StreamReader shazia1 VS.NET 2002/2003 0 August 16th, 2005 04:25 AM
Streamreader question stevec VB.NET 2002/2003 Basics 1 October 10th, 2004 12:49 AM
Looping StreamReader JAtkinson VS.NET 2002/2003 2 April 19th, 2004 04:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.