[Gambas-user] Some file/use or progress bar questions.
Jose J. Rodriguez
joe1962 at ...626...
Tue Feb 3 21:58:04 CET 2009
On 2/3/09, richard terry <rterry at ...1946...> wrote:
> On Wed, 4 Feb 2009 04:07:01 am werner 007 wrote:
> > Hi Richard
> >
> > Maybe you put the file in a array with split() if it makes sense for
> > further work.
> > Dont know how slow it is on such big files, but i made no bad experience
> > with around 10000 lines.
> >
> > Regards, Werner(007)
>
>
> Thanks, will try all these things. Maybe quickest to read the whole thing in
> one chunk, then split to the array. Will try on weekend.
>
IMHO, anything that forces reading the whole file twice is very
inelegant, besides making it take twice as long. Unless you really
need the count of lines for more than "eye candy", it is better to use
the file size and bytes read values to update the scroll bar.
Regards,
Joe1962
More information about the User
mailing list