Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a file in binary mode
Message
 
 
À
04/09/2001 12:34:31
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00552106
Message ID:
00552150
Vues:
23
>Ok, but what happen when the file is very large? More than 1 MB

If you have the available memory, you can use FiletoStr(). It will suck the entire file into memory. VFP's string capacity can hold a great deal larger than 1 MB (I have created strings in excess of 1 GB for tst purposes).

If you don't have the memory available, then you have to use the LLFF as Hilmar posted. Use FSeek() to position the file pointer and FRead() to read portions of the file into memory. It will probably take longer but the some of the memory contraints don't apply.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform