I noticed the problem with the spaces. Thanks a lot, it really helped when I changed it. As for the status, what status should I give the file instead?
Thanks for all your help. I got it working. For all who may need it, this is the exact code I ended up using:
Integer :: i,j,fileindex
Character(len=20) :: filename(45),aa
fileindex = 1
aa = "(I2,A1,I2,A4)"
Do i=1,15
Do j=1,3
write(filename(fileindex),aa) i,"-",j,".txt"...
Hello,
I'm new to this forum. I was wondering if anyone can tell me if it is possible and if they know how to create what I call a pseudo array of output files.
Here is the pseudo code:
Do i=1,15
Do j=1,3
open(unit=(10+i*j),file="i-j.txt",status="new")
EndDo
EndDo
Basically...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.