Re: [Gambas-user] Question about read/write file performance

2010-11-26 Thread Benoît Minisini
> Hi, > > Maybe this is a basic question. I have 2 scripts like this: > > Code 1: > Dim buff as *Byte* > sizeOfFile = Stat("aBigFile").Size > > hFile = Open "aBigFile" for read > For i = 1 to sizeOfFile > Read hFile, buff > Next > Close hFile > > Code 2: > Dim buff as *Byte* > Dim bigBuff as *F

[Gambas-user] Question about read/write file performance

2010-11-25 Thread Phạm Quang Dương
Hi, Maybe this is a basic question. I have 2 scripts like this: Code 1: Dim buff as *Byte* sizeOfFile = Stat("aBigFile").Size hFile = Open "aBigFile" for read For i = 1 to sizeOfFile Read hFile, buff Next Close hFile Code 2: Dim buff as *Byte* Dim bigBuff as *Float* sizeOfFile = Stat("aBigFile