ydonna1990
- 15
- 0
Hello. I am a beginner in the Fortran language and I want to know what isotat=stat means.
also what is exactly the "buf argument"?
also what is exactly the "buf argument"?
ydonna1990 said:I want to know what isotat=stat means
ydonna1990 said:what is exactly the "buf argument"?
jtbell said:A Google search for "fortran iostat" gave me this page as the first result:
http://www.cs.mtu.edu/~shene/COURSES/cs201/NOTES/chap04/iostatus.html
I don't know what you're asking about here. It might help if you can show us an example.
ydonna1990 said:if (userdefine==0) then
open(100,file='COORD.DAT',iostat=stat)
if(stat==0)then
read(100,'(a)',iostat=stat)line
read(100,'(a)',iostat=stat)line
if ((line(1:2)/='--').and.(line/=' ').and.(line(1:5)/='COORD'))then
jtbell said:Where is the "buf argument"? That's what I was asking about.
ydonna1990 said:INTEGER,buf ::Iphi_in,Ilnkx_in,Ilnky_in,Ilnkz_in,FirstRun_in
jtbell said:The '::' looks like Fortran 90 (or later). I'm not very familiar with those versions of Fortran, so someone else had best answer this part of your question.
iostat was used in Fortran 77 (possibly earlier) which is what I'm familiar with.