Discussion:
como copiar archivos en borland c
(demasiado antiguo para responder)
HADES
2004-06-11 01:18:01 UTC
Permalink
hola utilizo borland c y estoy intentando copiar un archivo de una
carpeta a otra sin necesidad de tenerlo q leer, como lo hago?
gracias
Bartomeu
2004-06-11 07:13:06 UTC
Permalink
Post by HADES
hola utilizo borland c y estoy intentando copiar un archivo de una
carpeta a otra sin necesidad de tenerlo q leer, como lo hago?
gracias
Copiado y pegado desde la ayuda del CBuilder 6:

Copies the source file to the destination file.

function CopyFileTo(const Source: string; const Destination: string):
Boolean;

Parameters
const Source: string Source file name.
const Destination: string Destination file name.

Returns
Boolean - True if the file is copied, False on error.

Description
CopyFileTo is a function used to copy the file specified in Source to the
file specified in Destination.
CopyFileTo will return False if the file in Destination already exists.
CopyFileTo encapsulates the platform-specific calls needed to perform the
file copy operation. On the Windows platform, this is the Win32 API function
CopyFile. On the Linux platform, CopyFileTo uses a TFileStream instance to
create the destination file.

Loading...