Metin Dosyasını Kapat
Komut: textFileClose
Daha önce Okunmak üzere Metin Dosyasını Aç komutu tarafından ya da Metin Dosyasını Yazmak İçin Aç komutu tarafından açılmış bir metin dosyasını kapatır.
Sözdizimi
textFileClose --file(TextFileReader)
Girişler
| Komut Dosyası | Tasarımcı | Zorunlu | AcceptedTypes | Açıklama |
|---|---|---|---|---|
| -- dosya | Metin dosyası | Zorunlu | Metin Dosyası Okuyucu, Metin Dosyası Yazıcı | Açılan metin dosyasını tutan değişken. |
Örnek
Daha önce Metin Dosyasını Yazmak İçin Aç komutu tarafından açılmış olan bir metin dosyasını yazma işlemini etkinleştirerek kapatır.
defVar --name pathFile --type String
defVar --name writerText --type TextFileWriter
getSpecialFolder --folder "Desktop" pathFile=value
// Open or create the text file and return the variable with the file open to be written.
openTextWriter --mode "OpenOrCreate" --autoflush --share "ReadWrite" --path "${pathFile}\\text.txt" --encoding "Default" writerText=value
// Write the text "IBM Robotic Process Automation" into the file.
textWrite --text "IBM Robotic Process Automation" --file ${writerText}
// Close the previously opened text file for writing.
textFileClose --file ${writerText}