How to get 10 records at a time in a txt or xlsx list

I’m really not sure what you’re trying to do there.

Use Generate Datatable to turn the text into a datatable.

https://docs.uipath.com/activities/docs/generate-data-table