Probleme en c

fayssal -  
chuka Messages postés 965 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,
comment copier un fichier dans language c et le coller dans une autre endroit en pricison l'ondroit

3 réponses

Mehdi4.0 Messages postés 52 Date d'inscription   Statut Membre Dernière intervention   13
 
Jai pas compris ce que tu veut ya khouya !
0
mamiemando Messages postés 33778 Date d'inscription   Statut Modérateur Dernière intervention   7 884
 
Peux-tu donner un exemple de ce que tu cherches à faire ?
0
chuka Messages postés 965 Date d'inscription   Statut Membre Dernière intervention   378
 
Salut,
Si c'est sur windows, regarde le msdn à CopyFile().
BOOL WINAPI CopyFile(
__in LPCTSTR lpExistingFileName,
__in LPCTSTR lpNewFileName,
__in BOOL bFailIfExists
);
Parameters
lpExistingFileName [in]
The name of an existing file.

In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming a File.

If lpExistingFileName does not exist, CopyFile fails, and GetLastError returns ERROR_FILE_NOT_FOUND.

lpNewFileName [in]
The name of the new file.

In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming a File.

bFailIfExists [in]
If this parameter is TRUE and the new file specified by lpNewFileName already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds

J'espere ca pourra t'aider!!
@+
0