![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#3
|
||||
|
||||
|
Otra forma de hacerlo es usando streams:
Código:
procedure CopyFile(const Source, Dest: String);
var
FromStream, ToStream: TFileStream;
begin
FromStream := TFileStream.Create(Source, fmOpenRead);
try
ToStream := TFileStream.Create(Dest, fmCreate);
try
ToStream.CopyFrom(FromStream, 0);
finally
ToStream.Free;
end;
finally
FromStream.Free;
end;
end;
// Saludos |
|
|
|