> Marco van de Voort schreef: > >> will add 64k to the executable because it's allocated on the stack. > > > > Huh? > > > > A filebuffer variable must be available always, so it is a global variable. > > I thought the file buffer variable must available for the time a file is > opened and > can be discarded after the file has been closed.
True of course. I tried to paint a general case. If your filehandling is within one procedure it can be on the stack. If that filehandling is within a class, the buffer can be a member of a class etc. But in neither of these cases it is in the binary. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal