バイナリー・ファイルの変更内容の保存
動詞: binaryFlush
使用可能: < Standard>
バイナリー・ファイルに対して行った変更を保存します。
このコマンドは、すべてのファイル・タイプ (.txt、.html、.pdf、...) を解釈します。 バイナリーとして。
構文
binaryFlush --file(BinaryFileWriter)
入力
| スクリプト | Designer | 必須 | 許容タイプ | 説明 |
|---|---|---|---|---|
| -- ファイル | バイナリー・ファイル | 必須 | バイナリー・ファイル・ライター | 開く対象となるバイナリー・ファイル。 |
例
このコマンドで、バイナリー・ファイルに 10 進数を書き込んだ後に変更内容を保存します。 最後に、バイナリー・ファイルを閉じます。
defVar --name fileToWrite --type BinaryFileWriter
defVar --name filePath --type String
getSpecialFolder --folder "Desktop" filePath=value
openBinaryWriter --mode "OpenOrCreate" --share "Write" --path "${filePath}\\flush.txt" --encoding "Default" fileToWrite=value
binaryWriteDecimal --value 1001.95 --file ${fileToWrite}
binaryFlush --file ${fileToWrite}
binaryFileClose --file ${fileToWrite}
注釈
バイナリー・ファイルを開いて読み取るやバイナリー・ファイルを開いて書き込むなどのコマンドでは、「自動フラッシュ」パラメーターに事前にマークが付いていて、変更内容が既にファイルに自動的に保存されているので、バイナリー・ファイルの変更内容の保存 コマンドを使用する必要はありません。