# tWaitForFile

Iterates on a directory and triggers the next component when the defined condition is met.

This component is used to put the component connected with it in waiting state. It then triggers that component when the defined file operation occurs in the specified directory.

### In this section

* [tWaitForFile Standard properties](https://help.qlik.com/talend/en-US/components/7.3/orchestration/twaitforfile-standard-properties)

**Related concepts**

[Waiting for a file to be created and continuing the iteration loop after a message is triggered](https://help.qlik.com/talend/en-US/components/7.3/orchestration/twaitforfile-waiting-for-file-to-be-created-and-continuing-iteration-loop-after-message-is-triggered-standard-component "Based on the previous scenario, this scenario describes a Job triggers a message on the console when a text file is created in the directory being scanned, without ending the scanning process immediately. The Job continues scanning the directory until the number of iterations reaches the defined maximum value.")

[Waiting for a file to be created and stopping the iteration loop after a message is triggered](https://help.qlik.com/talend/en-US/components/7.3/orchestration/twaitforfile-tjava-waiting-for-file-to-be-created-and-stopping-iteration-loop-after-message-is-triggered-standard-component-this)