Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacement for COPY filea + fileb
Message
From
26/06/2001 09:17:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00523508
Message ID:
00523514
Views:
8
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform