Değişiklikleri Metin Dosyasına Kaydet
Komut: textFlush
Kullanılabilir metin dosyasında yapılan tüm değişiklikleri Metin Dosyasını Yazmak İçin Aç komutuyla kaydeder.
Sözdizimi
textFlush --file(TextFileWriter)
Girişler
| Komut Dosyası | Tasarımcı | Zorunlu | AcceptedTypes | Açıklama |
|---|---|---|---|---|
| -- dosya | Yazıcı | Zorunlu | Metin Dosyası Yazıcı | Yapılacak değişikliklerin saklanabilmesi için açılması gereken metin dosyasını tutan değişken. |
Örnek
First, the Metin Dosyasını Yazmak İçin Aç and Metin Dosyasına Yaz commands are used to open the file for writing and writing to it, respectively. Daha sonra yapılan tüm değişiklikler Değişiklikleri Metin Dosyasına Kaydet komutu kullanılarak kaydedilir.
defVar --name filePath --type String
defVar --name textWriter --type TextFileWriter
getSpecialFolder --folder "Desktop" filePath=value
// Open or create the text file for writing and return the variable with the file open for writing to it.
openTextWriter --mode "OpenOrCreate" --share "ReadWrite" --path "${filePath}\\text.txt" --encoding "Default" textWriter=value
// Write the text "IBM Robotic Process Automation" into the file.
textWrite --text "IBM Robotic Process Automation" --file ${textWriter}
// Save changes made to the open text file for writing.
textFlush --file ${textWriter}
Notlar
Değişiklikleri Metin Dosyasına Kaydet komutu, Metin Dosyasını Yazmak İçin Aç komutunun Otomatik Temizleme seçeneği devre dışı bırakıldığı durumlarda kullanılır.