I have a text file with two colums with real numbers.
How can I import the numbers from the second colum in an array ?
I think I first need to define an allocatble array, then read my text file and then allocate the second column to the array, but I don't know how to properly do it.
The text file looks like this:
1850 0.23
1851 0.56
1852 0.73
...
2000 0.98
(Two colums but I only need the second one (not the years))
My try:
program FINAL_PROJECT_A2
implicit none
real F_in_obs(0:150), funky
open(unit=10,file='Fin_obs.txt',status='old')
read(10,*) funky
do i=1,150
F_in_obs(i)=funky(2,i)
enddo
close(unit=10)
The error message is the following:
F_in_obs(i)=funky(2,i)
1
Error: Unclassifiable statement at (1)