Description |
Loops through the contents of a specified text file and populates a variable with the current string of delimited text. The loop ends at the end of the file or if a Break step is encountered. This action wraps the functionality of a Read from File action and a Loop List action into one concise loop structure. |
Declaration |
<AMLOOP TYPE="FILECONTENTS" FILE="Text" RESULTVARIABLE="Text" DELIMITER="Text"> |
Example |
<AMLOOP TYPE="FILECONTENTS" FILE="C:\Temp\FileName.txt" RESULTVARIABLE="VariableName" DELIMITER="|"> |
General Tab Parameters |
File: Specifies the file to loop. Text, Required Populate variable with file data: Specifies an already created variable that should be populated with the next delimited string on each successive loop. Text, Required Delimiter: Specifies the character that delimits the items in the file.
Text, Optional - Default: new line |