are you doing the following?
FILEWRITE(FILEHANDLE,WhattoWrite,LEN(WhattoWrite));
i have found else, it will try to add/remove bytes to make it the correct length
toggle quoted message
Show quoted text
--- In Crestron@..., "Dustin" <dustin@...> wrote:
Hey everyone,
I've noticed for awhile now that the "FileWrite" command on a 3 series adds 8 bytes worth of hex info to the beginning of the file.
Up until now, this hasn't been a big deal, as I was simply using the file for formatted text and parsing it back in later where I could just ignore it. Now I'm trying to save a data type that isn't just text and it's not working. (image file) The file shows up as corrupt when transferred to a pc. If I open it with a hex editor and delete the 8 bytes, the file will open fine on the PC or anything else I send it to.
The module is working fine on a 2 series - doesn't add the junk to the file. All this is can be recreated with even a simple "hello world" type program that saves to a file. Your file will end up 8 bytes larger than the string you are writing.
Called TB and they just dismissed it as "must be a memory address" and offered no solutions.
Anyone else ran into this / found a magic bullet?
Thanks
-Dustin