Write Boolean in Binary File

Verb: binaryWriteBool

Available from: <Standard>

Converts a boolean value to binary and writes it into a binary file.

Syntax

binaryWriteBool --value(Variant) --file(BinaryFileWriter)

Inputs

Script Designer Required AcceptedTypes Description
--value Boolean Required Any Boolean value that should be written in binary in the file.
--file Binary file Required Binary File Writer Binary file used for writing.

Example

Writes a boolean value to a binary file, also using the Open Binary File for Writing command to create this file.

defVar --name binaryWriter --type BinaryFileWriter
defVar --name boolean --type Boolean --value True
defVar --name filePath --type String
getSpecialFolder --folder "Desktop" filePath=value
openBinaryWriter --mode "OpenOrCreate" --autoflush  --share "Write" --path "${filePath}\\binaryFile.txt" --encoding "Default" binaryWriter=value
binaryWriteBool --value ${boolean} --file ${binaryWriter}
binaryFileClose --file ${binaryWriter}

See Also

  • Binary Read Int
  • Close Binary File
  • Close Text File
  • Get Binary File Boolean
  • Get Binary File Characters
  • Get Binary File Text
  • Get Date and Time in Binary
  • Get Table from a Text File
  • Get Text File Line
  • Go to Text Reader Line
  • Move Index in Binary File
  • Open Binary File for Reading
  • Open Binary File for Writing
  • Open Text File for Reading
  • Open Text File for Writing
  • Read Binary File Decimal
  • Read Binary File Time Span
  • Read Delimited Line of Text File
  • Read Text to the End
  • Save Changes to Binary File
  • Save Changes to Text File
  • Write Date Time in Binary File
  • Write Decimal to Binary File
  • Write Delimited Text Line to Text File
  • Write Delimited Texts in Text File
  • Write in Text File
  • Write Integer to Binary File
  • Write Text in Binary File
  • Write Text Line to Text File
  • Write Time Span in Binary File