Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read large file (lotus, word...) with froxpro
Message
De
15/07/2003 09:23:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
15/07/2003 09:19:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00810173
Message ID:
00810176
Vues:
12
>Hi
>
>We want to read very large file (30 meg for example) with FoxPro and split this file in section of 5 meg. This section will be send and join again at the other end. We want the best way to read the file and split.
>
>Mike

You could use string manipulation functions (FileToStr() and StrToFile(), or LLFF. IMO, LLFF are more efficient for large files, since you don't read the entire file at a time, and therefore don't risk running out of real RAM (and using virtual memory). However, I didn't try to read such large chunks at a time (of course, you can also read smaller chunks, and then combine them).

The relevant LLFF in this case are: fopen(), fclose(), fread(), fwrite(), feof().

HTH,

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
Répondre
Fil
Voir

Click here to load this message in the networking platform