İkili Dosyayı Okumak İçin Aç
Komut: openBinaryReader
Kullanılabilir kaynağı: < Standard>
Yolu, paylaşım iznini ve daha sonra dosyayı değiştirebilecek kodlamayı kullanarak okumak için ikili bir dosya açar.
Komut tüm dosya tiplerini yorumluyor (.txt, .html, .pdf, ...) İkili olarak.
Sözdizimi
openBinaryReader --share(AutomationFileShare) --path(String) --encoding(EncodingType) (BinaryFileReader)=value
Girişler
| Komut Dosyası | Tasarımcı | Zorunlu | AcceptedTypes | Açıklama |
|---|---|---|---|---|
| -- paylaş | Paylaşım Modu | Zorunlu | AutomationFilePaylaşımı | Dosya okuma için açıkken, dosya içinde işlem gerçekleştirmenize olanak tanıyan seçenek: |
| -- yol | Yol | Zorunlu | Metin | Okuma için kullanılacak ikili dosyanın tam yolu. |
| -- kodlama | Kodlama | Zorunlu | EncodingType | İkili dosya okunurken kullanılan karakter kodlaması: |
Çıkışlar
| Komut Dosyası | Tasarımcı | AcceptedTypes | Açıklama |
|---|---|---|---|
| değer | İkili Okuyucu | İkili Dosya Okuyucu | İkili dosya okumak için açıldı. |
Örnek
The İkili Dosyayı Okumak İçin Aç command is used to open a binary file with read and write permissions and the İkili Dosya Metnini Al command reads and returns the contents of the file.
defVar --name binaryReader --type BinaryFileReader
defVar --name textValue --type String
// Open the file informed for reading.
// Download the following file to run the command.
openBinaryReader --share "Read" --path "binaryFile.txt" --encoding "Default" binaryReader=value
// Get the text contained in the file.
binaryReadString --file ${binaryReader} textValue=value
// Close the binary file.
binaryFileClose --file ${binaryReader}
For the correct operation of the script above, it is necessary to download the file and enter its path in the Yol parameter of the İkili Dosyayı Okumak İçin Aç command.