Writes bytes to a file.
call "CBL_WRITE_FILE" using file-handle
file-offset
byte-count
flags
buffer
| Using call prototype (see Key) | Picture | |
|---|---|---|
| file-handle | cblt-bytestream-handle | pic x(4) comp-5. |
| file-offset | cblt-x8-compx | pic x(8) comp-x. |
| byte-count | cblt-x4-compx | pic x(4) comp-x. |
| flags | cblt-x1-compx | pic x comp-x. |
| buffer | pic x(n). | pic x(n). |
Putting a value of zero in this field causes the file to be truncated or extended to the size specified in the file-offset field.
None
Comments:
The success of the call can be checked by examining RETURN-CODE.