>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)