Loop File Contents Action—Setting Properties

The Loop File Contents action is used to loop through a delimited text file and populate a variable with the current text string. It combines the Read From File and the Loop List actions into a single action. Any delimiter can be used. The variable must be created in an earlier step using the Create Variable action.

To set Loop File Contents properties

  1. From the Task Builder Available Actions pane, open the Loop folder and double-click the Loop File Contents action or drag it into the Steps pane.

  2. In the File box, click the Open Folder button and navigate to the file.

  3. In the Populate variable with file data box, select the variable to populate.

  4. In the Delimiter box, select the delimiter. If you select Custom, enter the delimiter in the Custom delimiter text box.

  5. To set the Description tab properties, refer to Description Tab Options.

  6. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  7. When finished, click OK to save settings and close the properties dialog window.

To auto-indent after all steps are added

  1. In the Task Builder Steps pane, hold down SHIFT and click the first and last steps in the block so that the complete block of steps is selected.

  2. Click the Format button .

See Also

About Actions

Adding Task Steps

Loop File Contents Action

Loop Files Action