I have a little bit of VBA code which reads a 13MB binary file into memory. Once there I want to edit it and write it out to a second file.
The problem is, using the write command, (WRITE #2 ,a$ - where a$ is my edited 13MB string), I get chr(34)'s inserted at the beginning of the output and at every place in the string where there is already a chr(34), (ie it's doubling up the quotation marks - I guess because it thinks it's found a terminator and wants to start a new string).
My input file is BINARY ACCESS READ and I've tried using BINARY ACCESS WRITE and OUTPUT for my output file. I have tried WRITE and PRINT. I have tried outputting the string in a single shot and byte by byte, with the same frustrating result.
Can anyone offer me some guidance, please?
The problem is, using the write command, (WRITE #2 ,a$ - where a$ is my edited 13MB string), I get chr(34)'s inserted at the beginning of the output and at every place in the string where there is already a chr(34), (ie it's doubling up the quotation marks - I guess because it thinks it's found a terminator and wants to start a new string).
My input file is BINARY ACCESS READ and I've tried using BINARY ACCESS WRITE and OUTPUT for my output file. I have tried WRITE and PRINT. I have tried outputting the string in a single shot and byte by byte, with the same frustrating result.
Can anyone offer me some guidance, please?