Coincidentally as I was preparing my VFP2C32 presentation just now for next week's Virtual Fox Fest, I was reading about the Windows API's support for memory mapped files.
"Memory-mapped files: The Windows API also provides support for memory-mapped files, which allow developers to map a file directly into memory and access it as if it were an array."
I'm going to see if I can contrive an example of how to do this in VFP.
Eric
On Tue, May 2, 2023 at 8:31 AM Eric Selje Eric@saltydogllc.com wrote:
Couldn't you leave the file on disk and make the changes directly to the file with low level file functions https://hackfox.github.io/section4/s4g194.html?
Eric
On Mon, May 1, 2023 at 9:33 PM Joe Yoder joe@wheypower.com wrote:
I want to pull a 3.5 meg file into a Byte Array in Fox, make some changes to individual bytes, and write the array back to another file.
The only way I have found to do so is to build the array one character at a time. Is there a better way to do this?
Thanks in advance for any input ,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]