writing a very simple read file in Fortran 95. The file has only three numbers in it, every time I run the code, the .exe file says "error: attempt to read end-of-file at address
", any clues why this keeps happening?
The code is :
program readdata
implicit none
!Delcaration of variables
real :: x,y,z
!Main part
open (10, file='C:\Users\matth\OneDrive\Documents\Tutorialcode\array.txt',ACCESS='SEQUENTIAL', STATUS='OLD', FORM='FORMATTED')
read (10, *) x, y, z
print *,x,y,z
close (10)
end program readdata