Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old April 17th, 2004, 01:08 PM
Authorized User
Join Date: Feb 2004
Location: Richmond, Virginia, .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JAtkinson
Default StreamReader Loop [Resolved]


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.

Reply With Quote

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06: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

All times are GMT -4. The time now is 11:25 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.