When i try to read a txt file with the following code example:
double precision inp(100)
open(1,file='whatever.txt')
do i=1,100
read(1,*) inp(i)
enddo
close(1)
The program just ends when it arrives at the read sentence. I tried alternative ways to write the loop, like
do
read(1,*) inp
enddo
but it's the same. The funny part is that if i write a txt with fortran or by hand and then i try to read it, it works!!
i'm desperate, please, help me.