I have a variable, which can have a value in the range from 1 to 20. If the value is 7, I have to open 7 files. What could be an elegant way of doing this? Martin