Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically reading/writing LARGE text files
Message
From
21/08/1999 19:10:08
 
 
To
21/08/1999 15:19:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00256287
Message ID:
00256346
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform