Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
BinaryFile.WriteHex
Writes hex encoded data.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
BinaryFile | 7.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "BinaryFile.WriteHex"; BinaryFileRef; HexText ) More
Parameters
Parameter | Description | Example |
---|---|---|
BinaryFileRef | The reference number for the open file. | $FH |
HexText | The hex encoded data as text. | "48656C6C6F20576F726C64" |
Result
Returns number of bytes written or error.
Description
Writes hex encoded data.Examples
Write Hello World to text:
Set Variable [ $fh ; Value: MBS( "BinaryFile.Create"; "/Users/cs/Desktop/test.txt" ) ]
Set Variable [ $r ; Value: MBS( "BinaryFile.WriteHex"; $fh; "48656C6C6F20576F726C64") ]
Set Variable [ $r ; Value: MBS( "BinaryFile.Close"; $fh) ]
See also
- BinaryFile.Close
- BinaryFile.Create
- BinaryFile.Open
- BinaryFile.ReadHex
- BinaryFile.WriteByte
- BinaryFile.WriteFloat
- BinaryFile.WriteInt
- BinaryFile.WriteText
Blog Entries
- MBS Plugin Advent calendar: 3 - BinaryFile
- More Text Encoding conversion for FileMaker
- FileMaker 18 File Script Steps vs. BinaryFile functions
- Tip of the day: Split large files into smaller chunks
This function checks for a license.
Created 12nd June 2017, last changed 10th May 2023