Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy multiple files into one
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00582015
Message ID:
00582118
Vues:
38
This message has been marked as the solution to the initial question of the thread.
there's extra parenthesis after destination file name. The correct code is
=STRtofile( Filetostr("c:\sis_med\enviar\datos.htm"), ;
   "c:\sis_med\enviar\filex.htm", .t.)
>=STRtofile( Filetostr("c:\sis_med\enviar\datos.htm"), "c:\sis_med\enviar\filex.htm"), .t.)
>=Strtofile( Filetostr("c:\sis_med\enviar\cardiologia.htm"), "c:\sis_med\enviar\filex.htm"), .t.)
>=Strtofile( Filetostr("c:\sis_med\enviar\general.htm"), "c:\sis_med\enviar\filex.htm"), .t.)
>
>
>>It would happend if you didn't specify ...t. as the third parameters. Can you post your actual code?
>>
>>>It does not work, each file replace the contents of filex.txt, at the end I just get filen.txt
>>>
>>>>
>>>>You can use Filetostr() and Strtofile() functions.
Erase ("filex.txt")
>>>>Strtofile( Filetostr('file1.txt"), "filex.txt"), .t.)
>>>>Strtofile( Filetostr('file2.txt"), "filex.txt"), .t.)
>>>>...
>>>>Strtofile( Filetostr('filen.txt"), "filex.txt"), .t.)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform