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

You don’t get 10 at a time. You read the whole thing into a datatable, then manage the “10 at a time” part as you perform the steps you need to perform with the data.