TeleFlow Step 0360
From TeleFlow
Load Text Step
Loads the contents of a file into a TeleFlow variable, optionally converting to Base 64 encoding to support binary files.
Contents |
Properties
Variable to load text into: The variable that will be created or modified with the contents of the Loaded Text. eg.: @CONTENTS
From file: The directory path to and the filename of the text file being opened. eg.:c:\ivrapp\txt\somefile.txt or @MYFILE
Variable to receive byte count: Provide a variable name in this field to capture the total number of bytes loaded. Note that if Base64 encoding is used, this will be the size of the encoded data, not the original size of the binary data on disk. This field is optional, and can be left empty.
Convert to Base64 (MIME) encoding: If checked, data in the file will be converted to Base64 encoding when it is loaded. This is typically done if you need to read binary data, however Base64 encoding will also work on text data. If unchecked, the data will not be encoded, and only text will be loaded into your variable.
Include CR/LF in Base64 count: In Base64 encoding, CR/LF characters are considered white space, and therefore are not counted by TeleFlow when it stores the converted byte count into the "Variable to receive byte count". If you wish to include the CR/LF characters in the byte count, check this box. Otherwise, leave it un-checked.
Action Steps
Fail: The Load Text failed. The Load Text failed. This may occur for a number of reasons, but the most likely causes are that filename was not valid, or the file does not exist.
Related Steps
Notes
Encoding and decoding data using Base64 gives TeleFlow the capability to work with binary data. To write binary data use the Write File step.
