strong text
You can get all the files in a folder with Directory.GetFiles("C:\yourpath")
For each file you can then use the appropriate activity to read the data:
https://docs.uipath.com/activities/docs/read-text-file
https://docs.uipath.com/activities/docs/word-read-text
For writing the results in an excel file you can use write range.
If this has helped you, please mark this answer as the solution.