I am writing a program in fortran 90 which reads in input data from a text file performs calculation and then outputs data to an output file called beam-case-#.out where # is a case number. Can I create an array to open multiple output files determined by a read number of cases. For example:

read(10,*) numcase
open(20,file='beam-case-numcase')