Hi Bart,
don't know what you are exactly trying to do, but I assume that yoou
would not need an array at all.
The LoadDataFromFile function opens a file as input stream an reads line
by line into an array.
As you wrote that you want to iterate over the array and do something
with each element, I guess you could do that also directly on the single
line given back from 'oInputStream.ReadLine'.
So a possibility would be to rip off the parts related to assigning the
lines to the array and fill in your content manipulation code.
Just an idea
Christoph
Bart Aimar schrieb:
Christoph Jopp ha scritto:
Hi Bart,
Hi Christoph,
and thank for your answer
I checked whether there is a general limit for arrays, but had no
problems assigning 240000 (long) strings to an array on my system.
In your code your using LoadDataFromFile from the Tools library?
In this library 'Redim Preserve' is used to expand the array and in my
opinion this copies the array to a temporary array and thus uses lots
of system resources.
So I think system resources is what limits the reading of lines in
this case.
You are right... I read on the web that Redim Preserve may be a
performace trap... but I am not a programmer and I have a big problems
on understand the matter...
As yet I used sometime the array, but always as a low level user...
(copy/paste is my preferred style... :-) )
BTW I have tried (quiet very naive) to modifie LoadDataFromFile function
on comment the lines with "Preserve Modifie".
In this way I obtaneid the Overflow in five seconds (instead 2
minutes)... :-(
reagards
Bart
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]