Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying text files
Message
De
29/06/2004 15:08:51
 
 
À
29/06/2004 15:03:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00918608
Message ID:
00918611
Vues:
7
>I have 3 text files that I want to merge into a new file from within Visual Foxpro. I can do this with the DOS "COPY" command but the long file names is a problem. Is there a windows based copy that I can use to acomplish the same result? Unfortunately the foxpro "COPY" commands only handles one file.
>
>Thanks


try
String1 = FileToStr("File1.txt")
String2 = FileToStr("File2.txt")
String3 = FileToStr("File3.txt")
StrToFile(String1+chr(13)+String2+chr(13)+String3, "NewTextFile.txt")
hope this helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform