I had a problem on my program
this is my program:
program iso
implicit none
real , dimension(1000) :: St01,St02
integer :: k
X1=0.05 (variable & Changeable)
X2=0.1 (variable & Changeable)
open(1,file='D:\X1\ST01_drift.txt')
open(2,file='D:\X2\ST02_drift.txt')
Do k = 1,1000
read(1,*) st01(k)
end do
Do k = 1,1000
read(2,*) st02(k)
end do
end program iso
the problem is that my program can not read ST01_drift.txt and ST02_drift.txt form folders with name 0.05 and 0.1
in other words, folders 0.05 and 0.1 contains ST01_drift.txt and ST02_drift.txt
and in "open" comment, folders 0.05 and 0.1 should be opened with variables X1 and X2.
I don't know what kind of Variable X1 and X2 must be defined.for example REAL or CHARACTER or other things like these.
this is my program:
program iso
implicit none
real , dimension(1000) :: St01,St02
integer :: k
X1=0.05 (variable & Changeable)
X2=0.1 (variable & Changeable)
open(1,file='D:\X1\ST01_drift.txt')
open(2,file='D:\X2\ST02_drift.txt')
Do k = 1,1000
read(1,*) st01(k)
end do
Do k = 1,1000
read(2,*) st02(k)
end do
end program iso
the problem is that my program can not read ST01_drift.txt and ST02_drift.txt form folders with name 0.05 and 0.1
in other words, folders 0.05 and 0.1 contains ST01_drift.txt and ST02_drift.txt
and in "open" comment, folders 0.05 and 0.1 should be opened with variables X1 and X2.
I don't know what kind of Variable X1 and X2 must be defined.for example REAL or CHARACTER or other things like these.