Metin Satırını Metin Dosyasına Yaz
Komut: textWriteLine
Metin dosyasına bir metin satırı yazar.
Sözdizimi
textWriteLine [--text(String)] --file(TextFileWriter)
Girişler
| Komut Dosyası | Tasarımcı | Zorunlu | AcceptedTypes | Açıklama |
|---|---|---|---|---|
| -- metin | Metin | İsteğe bağlı | Metin | Dosyaya yazılması gereken metin satırı. |
| -- dosya | Metin yazıcı | Zorunlu | Metin Dosyası Yazıcı | Metin dosyasını yazmak için tutan değişken. |
Örnek
Açık metin dosyasının içinde bir metin satırı yazar. The Metin Dosyasını Yazmak İçin Aç command is used to open the file and the Metin Satırını Metin Dosyasına Yaz command for writing.
defVar --name filePath --type String
defVar --name textWriter --type TextFileWriter
getSpecialFolder --folder "Desktop" filePath=value
// Open the file entered for writing.
openTextWriter --mode "OpenOrCreate" --autoflush --share "Write" --path "${filePath}\\textFile.txt" --encoding "Default" textWriter=value
// Write a line with the text "IBM Robotic Process Automation, the leader in intelligent automation in Brazil!" in the open text file.
textWriteLine --text "IBM Robotic Process Automation, the leader in intelligent automation in Brazil!" --file ${textWriter}
textFileClose --file ${textWriter}