Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-04 Thread Doriano Blengino
Jose J. Rodriguez ha scritto: > On 2/3/09, richard terry 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 mad

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-03 Thread Jose J. Rodriguez
On 2/3/09, richard terry 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 1

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-03 Thread richard terry
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 1 lines. > > Regards, Werner(007) Thanks, will try all

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-03 Thread werner 007
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 1 lines. Regards, Werner(007) -- View this message in context: http://www.nabble.com/Some-file-use-or-progress-

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-03 Thread Rolf-Werner Eilert
Let me just add, I don't find such a function. So I might try something own using Instr or String.Instr (which one is faster?). The poor thing would still have to jump to some 30,000 linebreaks to count them, no idea how long this would take in practice... And: How long may strings be in Gambas

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-03 Thread Rolf-Werner Eilert
Don't know if this helps, just an idea: >> 1) I have a file with some 30,000 lines, but I want to know how many lines >> are >> in the file before I do anything to it - is this possible. I couldn't see >> how >> just looking at the syntax for files. >> Read in the file to a string and coun

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-02 Thread Doriano Blengino
richard terry ha scritto: (about the speed penalty) Yes, updating the screen is sometimes a speed penalty, depending on the complexity of the update, and the underlying hardware/software. For a X console (xterm), it is a *big* job to scroll the text - something less if the text does not scroll.

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-02 Thread Ron_1st
On Monday 02 February 2009, richard terry wrote: > 1) I have a file with some 30,000 lines, but I want to know how many lines > are > in the file before I do anything to it - is this possible. I couldn't see how > just looking at the syntax for files. > > > 2) Given that I could figure out how

Re: [Gambas-user] Some file/use or progress bar questions.

2009-02-02 Thread Frank Cox
On Mon, 02 Feb 2009 21:40:49 +1100 richard terry wrote: > 1) I have a file with some 30,000 lines, but I want to know how many lines > are > in the file before I do anything to it - is this possible. I couldn't see how > just looking at the syntax for files. If your line lengths are random, th

[Gambas-user] Some file/use or progress bar questions.

2009-02-02 Thread richard terry
1) I have a file with some 30,000 lines, but I want to know how many lines are in the file before I do anything to it - is this possible. I couldn't see how just looking at the syntax for files. 2) Given that I could figure out how many lines, I wondered if someone could give me some tips on h