Ver Mensaje Individual
  #2  
Antiguo 02-09-2011
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 36
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola Nelson.

En realidad no había tenido necesidad de trabajar en mucho con TFileStream por lo que no tenía idea clara de las ventajas sobre los métodos tradicionales de acceso.

Pero buscando bastante (no hay mucho al respecto), encontré algunas opiniones de quienes, sin dudas, saben más que yo del tema.
Cita:
Una de las ventaJas de utilizar FileStream en vez de los clásicos métodos de pascal tales como Rewrite,
WriteLn, etc. es que controla automáticamente los buffer en disco según el tamaño de los mismos en Windows.
( Trabajando con archivos de texto y binarios )


Cita:
For anyone who has wanted to say... save any data from a listbox and during run-time you wanted to append
different information to it, or throughout the applications running time and then save the information when
the application closes then you should use the TFileSteam Class.
The great thing about this is it can read, write and save the information in the exact order from any component
(in this case a listbox). When using it, it writes and saves the data onto the hard-disk in some kind of file
- this file type can be chosen during codeing.
( Delphi - Tfilestream )


Cita:
As you'll see in the sample project, TmemoryStream and TFileStream are remarkably interchangeable and compatible.
( Flavours of streams )

Espero que como a mí, te clarifique las conveniencias del uso. (Seguramente los compñeros agregarán algunas más...)

Un saludo.
__________________
Daniel Didriksen

Guía de estilo - Uso de las etiquetas - La otra guía de estilo ....
Responder Con Cita