I have a quick question that I've always wondered exactly how to do but never needed to. Well of course now I do. I have a DO loop that loops an arbitrary number of times. I would like to open a file each time it comes around, using the DO loop iterator as part of the filename. Ideally, it would look something like....
So, if anyone knows how to parse the variable into that text string, I would appreciate it. Thanks,
n = 5 DO i=1,n OPEN(11,file='input000',i,'.fmt',form='formatted') blah blah blah CLOSE(11) END DO