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

@postwick
Hi
I’m trying this way but it’s still with an error there’s an example I can base myself on