Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically reading/writing LARGE text files
Message
De
21/08/1999 19:10:08
 
 
À
21/08/1999 15:19:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00256287
Message ID:
00256346
Vues:
24
>I want to build a VFP program that will determine, and allow setting about 30 variables that will be used to add, delete, or modify lines in what is effectively an INI file. The problem is that this file can range up to about 50 or 60 MegaBytes in size. I read in the VFP help file on System Capacities that the Maximum # of characters per character string or memory variable is 16,777,184 … about 1/3 the size of my file.
>
>I plan to read the file size, and use a straight forward approach (reading it into memory and manipulating it there) if it's small enough, but now I need an approach that will work with files I find that are larger than about 16 MB.

Wow, this seems to be a change from VFP5. I just looked at the VFP5 help and it says 2GB. But you're right, the VFP6 help says 16MB. I wonder why they did that?!?! I just tried loading a 20MB file with FILETOSTR and it loaded OK. It did take a long time though, probably accessing the swap file. But it does seem like it will handle longer that 16MB...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform