On 2/3/09, richard terry <rte...@pacific.net.au> 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

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to