Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old May 14th, 2008, 01:32 PM
MarsdenM's Avatar
MarsdenM MarsdenM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Canada
Posts: 130 MarsdenM User rank is Lance Corporal (50 - 100 Reputation Level)MarsdenM User rank is Lance Corporal (50 - 100 Reputation Level)MarsdenM User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 4 h 42 m 6 sec
Reputation Power: 5
I guess my question would be, if you are going to go through the entire file no matter what, why read it line for line. Can't you just do a bulk split function on the file using the comma seperator and load the entire file into an array in one command instead of a brutal loop?
I have never tried it in VB6 but I have done this in VB.Net with success. As long as you don't exceed the limitation of elements for the array I would think this would be preferrable. Then you can search for values within the array without looping through the entire array also if that's is the intent of the file read.

My 2 cents worth.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Read txt file line by line


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway