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.
@postwick
what I’m trying to do is an automation that will read a txt file and select 10 lines at a time to perform a search on a system until it finishes all the lines of the file
My difficulty is to select 10 records at a time to do the search
Do While that runs as long as the counter variable is not greater than the number of rows in the datatable
– get the first 10 rows into a temp datatable: Top 50 Records from a DataTable - #2 by vvaidya
– remove the first 10 rows from the original datatable
– Use the temp datatable to do your 10 searches
– increment counter by 10