[Gambas-user] File.Load vs OPEN

Benoît Minisini gambas at ...1...
Tue Jan 21 21:58:27 CET 2003


Le Mardi 21 Janvier 2003 21:40, Charlie a écrit :
> jochen.georges at ...22... schrieb:
> >hello gambasians,
> >
> >for me it seems to be more comfortable to use
> >File.Load()
> >then using
> >OPEN file FOR READ AS #myFile.
>
> I am not shure (but nearly), because I don't remember why and since when.
> But I use the File.load to show the contens of the file.
> And the Open to read line by line (for doing something with the line
> contens).
> Yes that is it.
> How do you want analyse the line contens of a line in a File.load return?
>
> amicalement
> Charlie
>
> >Is OPEN just a inheritance of older times or when do i use it?
> >
> >thanks for any hint
> >
> >beste gruesse
> >jochen
>

Let's suppose the size of your file is 1GB. Are you going to use File.Load and 
loads it entirely in memory, or are you going to use the OPEN instruction ?

If you say horrors like that, I will destroy the File.Load instruction ! :-)

But yes, for little files, it is just a matter of taste...

-- 
Benoît Minisini
mailto:gambas at ...1...




More information about the User mailing list