Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 January 21st, 2004, 03:18 AM
Authorized User
 
Join Date: Jan 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default The Readline FUnction

Hello there,
            I want to know if there is a way read any line indivudually on a text by using the Readline function.Every time I call for the function it returns only the first line of the text.

Thanks,
Dinesh

 
Old January 28th, 2004, 01:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Depending on the objects you are using, you can, by using the for each statement, such as: for each strLine in objReader.<something>. I forget how I did it; I'll have to try and check my code later (don't have access to MSDN or my code right now) and post back to you later.
 
Old January 29th, 2004, 10:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I found the answer at: http://msdn.microsoft.com/library/de...xtFromFile.asp. You set up an infinite loop and read through each line in the file. When the line is nothing, then you "exit sub".





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
oTxtStream.ReadLine phungleon Classic ASP Basics 1 April 22nd, 2004 06:56 AM
retreive function/Line from macro or function? MikoMax J2EE 0 April 1st, 2004 04:42 AM
Readline From Text file and Use as Query phungleon Pro VB Databases 5 February 27th, 2004 10:01 AM





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