Metni Sonuna Kadar Oku
Komut: readTextToEnd
Kullanılabilir kaynağı: < Standard>
Okumak için açılmış bir metin dosyasının içeriğini okur.
Sözdizimi
readTextToEnd --file(TextFileReader) (String)=value
Girişler
| Komut Dosyası | Tasarımcı | Zorunlu | AcceptedTypes | Açıklama |
|---|---|---|---|---|
| -- dosya | Metin Dosyası | Zorunlu | Metin Dosyası Okuyucu | Okumak için açılan metin dosyası. Metin dosyasını elde etmek için Okunmak üzere Metin Dosyasını Aç komutunu kullanmanız gerekir. |
Çıkışlar
| Komut Dosyası | Tasarımcı | AcceptedTypes | Açıklama |
|---|---|---|---|
| değer | Metin | Metin | Okunan metin dosyasının içeriği. |
Örnek
This command reads the contents of a text file opened by the Okunmak üzere Metin Dosyasını Aç command from an index given in the Metin Okuyucu Satırına Git command.
defVar --name desktopPath --type String
defVar --name filePath --type String
defVar --name textReader --type TextFileReader
defVar --name text --type String
defVar --name rowNumber --type Boolean
getSpecialFolder --folder "Desktop" desktopPath=value
writeToFile --value "IBM Robotic Process Automation, Intelligent Automation.\r\n\r\nIBM Robotic Process Automation, Intelligent Automation." --file "${desktopPath}\\text.txt" --overwrite filePath=value
openTextReader --share "Read" --path "${filePath}" --encoding "Default" textReader=value
textReaderGoTo --linenumber 3 --file ${textReader} rowNumber=value
readTextToEnd --file ${textReader} text=value
logMessage --message "${text}" --type "Info"
Notlar
You can set the index to start reading using the Metin Okuyucu Satırına Git command.