How to read/write raw bytes

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

How to read/write raw bytes

Post 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?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: How to read/write raw bytes

Post 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?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply