Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you concatenate two text files using VFP?
Message
De
30/06/2007 21:02:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01237015
Message ID:
01237018
Vues:
15
What a great and simple solution! This was exactly what I was looking for. Thanks Sergey.

Robert Wright
STRTOFILE( FILETOSTR(lcFile1) + FILETOSTR(lcFile2), lcFile3 )
>What is the easiest way in VFP to concatenate two text files together? For instance, I would like to combine files: ABC.txt with file DEF.txt into a third file.
>
>File ABC.TXT =
>A data
>B data
>C data
>
>File DEF.TXT =
>D data
>E data
>F data
>
>The result file should contain ...
>A data
>B data
>C data
>D data
>E data
>F data
>
>I've used the DOS !COPY ABC.TXT+DEF.TXT command but this is clunky.
>
>Thanks,
>Robert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform