Read a file in folder and check using If condition

Hi,

In my automation, I have scenario to read a file name of text file (notepad) in a folder (project output folder) and then use if condition to validate it. Kindly help.

Hi @Karunamurthy

Do you want to use the if condition for the data present in that particular file?

Regards

Hi @vrdabberu

The condition is to check if the file (Dummy Society_Testing_BOT.txt) available in the path/folder.

Hi @Karunamurthy

Use for each file in folder activity and give the path till the output folder and also use the “*.text” in filter part and within that for each file in folder place the if condition and in condition just give the file name

Regards

Hi @Karunamurthy

please check the below flow

Regards

Hey,
if you know the file name and folder path that you can use activity ‘file exists’.
You will get true or false value:
image
image