http://qs1969.pair.com?node_id=11137743


in reply to Assign multiple items into an array containing the range operator from a file

This seems quite similar to the recent thread loop iterator in a string, probably some of the answers there will be useful to you.