Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fixed @FILEWRITEB

May
12,846
164
Here's v16, which seems correct.
Code:
v:\> del 178.txt
Deleting V:\178.txt
  1 file deleted

v:\> set h=%@fileopen[178.txt,w,b]

v:\> echo %@filewriteb[%h,-1,0xB2]
1

v:\> echo %@fileclose[%h]
0

v:\> type /x 178.txt
0000 0000 b2  ▓
Here's v17, which seems incorrect.
Code:
v:\> del 178.txt
Deleting V:\178.txt
  1 file deleted

v:\> set h=%@fileopen[178.txt,w,b]

v:\> echo %@filewriteb[%h,-1,0xB2]
3

v:\> echo %@fileclose[%h]
0

v:\> type /x 178.txt
0000 0000 00 ff b2  .ÿ²
 
And once I get that byte in a file, v16 TYPEs it like this
Code:
v:\> type 178.txt
▓
v:\>
while v17 TYPEs it like this
Code:
v:\> type 178.txt
²
v:\>
 
Back
Top