Page 1 of 1
How to read/write raw bytes
Posted: 25 Jul 2015 16:25
by bdeshi
http://www.xyplorer.com/xyfc/viewtopic. ... 79#p126363
So, am I missing something or does XY really not know how read/write raw hex without being wrestled into doing it?
Re: How to read/write raw bytes
Posted: 25 Jul 2015 20:42
by SkyFrontier
Once in a read/writefile() operation on a file exclusively handled by XYscripting I noticed that it were part ansi, part unicode - depending on copied section external text editors would recognize the piece either as one or another.
I guess this is probably due to writefile() auto-detecting content's nature, but this potentially produces non-standard files all around.
Scary experience...
I'm aware XY has isunicode(), but how reliable is this command in the given scenario?