Fixed @FILEWRITEB

May 20, 2008
9,145
58
Syracuse, NY, USA
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  .ÿ²
 
May 20, 2008
9,145
58
Syracuse, NY, USA
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:\>