@BSAVE — Saves data from a binary buffer to a file.

Syntax:
%@BSAVE[bbuf,filename,start,len]

bbufa binary buffer handle returned by @BALLOC
filenamethe file to save to; will be overwritten if it exists
startthe starting address within the buffer; defaults to 0
lenthe maximum number of bytes to save; defaults to all through the end of the buffer

@BSAVE returns the number of bytes written to the file. If any error occurs while saving the file, @BSAVE returns 0; the Windows error code is in _BBLASTERR.

See also: @BLOAD.