Close Binary File
Verb: binaryFileClose
Available from: <Standard>
Closes a binary file.
Syntax
binaryFileClose --file(BinaryFileReader)
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--file | Binary File | Required | Binary File Reader, Binary File Writer | Binary file that should be closed. |
Example
The Open Binary File for Writing command opens a binary file and the Write Decimal to Binary File command writes a decimal number to that file, which is closed by the Close Binary File command.
defVar --name writingFile --type BinaryFileWriter
defVar --name filePath --type String
getSpecialFolder --folder "Desktop" filePath=value
openBinaryWriter --mode "Create" --autoflush --share "Write" --path "${filePath}\\binary.txt" --encoding "Default" writingFile=value
binaryWriteDecimal --value 1001.95 --file ${writingFile}
binaryFileClose --file ${writingFile}