
May 14th, 2008, 01:32 PM
|
 |
Contributing User
|
|
Join Date: Jun 2004
Location: Canada
Posts: 130
 
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.
|