@hanviprebday
to read .docx files install package → UiPath.word.activities
to read .pdf files install package → UiPath.pdf.activities
In For each FolderName
assign : PathExtention= Path.GetExtension(CurrentFile)
If PathExtention=“.pdf”
Read Pdf Activity
ElseIf PathExtention=“.txt”
Read text Activity
Else
PathExtention=“.docx”
word application scope activity
in that Read Text activity