fwrite_bytes — Write bytes to a binary file.
fwrite_bytes writes bytes to the output
file defined by
The output file must have been opened with
The data to be written to the file is specified as
The number of bytes that are written to the file is returned in
Data to be written to the file.
Number of bytes written to the output binary file.
* Write a binary file byte by byte. open_file (Filename, 'append_binary', FileHandle) fwrite_bytes(FileHandle, [0x97, 99, 102], BytesWritten) close_file (FileHandle)
If an output file is open in binary mode and no file write error occurs,
fwrite_bytes returns TRUE. Otherwise, an exception is