a- folder contains multiple text files
b- excel file
I want to develop a process that import a) and do a loop through the folder, so it could read the text files. Then extract the specific information from each text file. After it has to compare the extracted information to the excel file values b).
arr_files = Directory.GetFiles(“your folderpath”)
Where arr_files is a variable of type array of string
Now use a BUILD DATATABLE activity and create a table structure u want which can be used to compare with the excel file u have and get the output as dt-input
Now use read range activity and read that excel file with datatable output named as dt
Use a FOR EACH activity and pass the array variable as input and change the type argument as string
Inside the loop use a READ TEXT FILE activity and pass the input filepath as item and get the output as stroutput
From this string output get the information u want and add it to the datatable built earlier with ADD DATAROW activity
Now you can compare the datatable read and built by ur own however u want
Have a view on this tutorial on how to use datatable