Read Binary heads up
Bob Sneidar
bobsneidar at iotecdigital.com
Thu Oct 31 14:41:19 EDT 2024
I want to give everyone a heads up. I created a handler to convert a Konica address book to a Toshiba one. First I open the Konica address book using binary read. But for some reason itemOffset was not working, and neither did “contains”. I couldn’t figure it out until I copy/pasted a line of the binary data into the message box, and then tried to backspace to shorten the line (thinking it might be too long). To my surprise, I had to backspace twice for every character, leading me to believe the file might be UTF-16!
I used open file filename for read (without the binary) and all is well. I guess the moral of the story is, if you don’t *have* to open binary, don’t.
Bob S
More information about the use-livecode
mailing list