Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
PROGRAM test
INTEGER :: i
OPEN(15,'test.dat')
DO i=1,100
REWIND(15)
WRITE(15,*) i
ENDDO
END
ALLOCATE (matrix(n,n))
DO A1=-1,1,2
A=0
B=0
DO WHILE (B<=N)
DO WHILE (A<=N)
READ (30,*)MATRIX(A,B)
A=A+1
END DO
B=B+1
END DO
DO B=1,N
DO A=1,N
READ (30,*)MATRIX(A,B)
END DO
END DO
READ(30,*) matrix
If you want to rewrite a file, you have just to rewind it !