Wolfram Language & System 10.0 (2014)|Legacy Documentation
writes a byte of data, specified as an integer from 0 to 255.
writes a sequence of bytes.
writes the raw sequence of characters in a string.
writes an object of the specified type.
writes a sequence of objects of the specified type.
writes a sequence of objects with a sequence of types.
- BinaryWrite supports the same types as BinaryRead.
- The output channel used by BinaryWrite can be a single file or pipe, or a list of them, each specified by a string giving its name, or by an OutputStream object that has been opened with BinaryFormat->True.
- If any of the specified files or pipes are not already open, BinaryWrite calls OpenWrite to open them.
- BinaryWrite does not close files and pipes after it finishes writing to them.
- When a list of types is given, the list is effectively repeated as many times as necessary.
- The following options can be given:
ByteOrdering $ByteOrdering what byte ordering to use
- BinaryWrite[channel,"string"] uses type , so all characters in should have character codes in the range 0–255.
- BinaryWrite returns $Failed if it encounters a data element that cannot match the type specified.