OK! Sorry if I was not clear with the information...
The array is an input with many data (for example, 10 experiments) and I want to create small arrays or files (per each experiment). The problem is the array will change, it means, sometimes will be 20 experiments, sometimes 4. I don't want...