|you prob'ly need to open the file as binary, which allows more control of output:|
open "xx" for binary access write as #1
dim x as string * 1
'---then you need to "put" single-byte variables until close:
also, i'm going from Qbasic, haven't had a chance to see if GWBASIC works the same...
(re gwbasic: "... i haven't heard that name in a loong, loong time"
(quote obi wan, to Luke).)
Other way is just create the file normal,close, open file for append, seek #1,-1, (basically seek eof -1), then close the file, effectively performing an end-ofile-ectomy.