Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacement for COPY filea + fileb
Message
De
26/06/2001 09:17:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/06/2001 09:09:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00523508
Message ID:
00523514
Vues:
9
>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

I don't remember the exact limit, but, at least in VFP6, the chunk size is much larger than what you are assuming. A variable can have up to 2e9 bytes, and fread() and fwrite() can manage, I think, in excess of 1e8 (100 million) bytes. Just try different chunk sizes.

In general, however, Visual FoxPro has a limitation of 2e9 bytes (2 GB) for almost everything.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform