Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacement for COPY filea + fileb
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00523508
Message ID:
00523537
Vues:
8
>Hi,
>
>I appreciate that this may not be a pure VFP question.
>
>I would like to be able to combine 2 files (specifically a PCL font in the same way that you used be able to in DOS with COPY filea + fileb filec. Is there a simple way of doing this maybe with the WINAPI.
>
>I am reluctant to use FOPEN(), FREAD(), FWRITE etc as some of these files are in excess of 250K, which would mean having to read in and write out 64K or less chunks at a time ( am I right in thinking that this is the max size for a variable in VFP). I'd prefer not to do it this way if there is a simpler way
>
>Thanks
>
>
>Simon Horne

You might try to do it with

STRTOFILE(FILETOSTR("myfile2.ext"), "myfile1.ext", .T.)

or:

chunk2 = FILETOSTR("myfile2.ext")
STRTOFILE(chunk2, "myfile1.ext", .t. )

or any other variation.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform