I appology if this place is not the appropiate place to ask my question.
Suppose that I have a file "sampleFile.dat" with 12 rows.
When i compile the below program with ifort i get 13.
When I compile the same program with gfortran i get 12.
Why i get differents values?
Thank you in advance.
integer :: nrows, ios
nrows = 0
open(unit=15, file ="sampleFile.dat")
do while (ios == 0)
read(15, * , iostat = ios )
nrows = nrows + 1
end program nlines